【发布时间】:2023-04-09 08:17:01
【问题描述】:
我正在尝试支持 eclipse IDE 以使用基于 this link 的 aar
我在尝试迭代编译依赖项时遇到问题
configurations.compile.filter {it.name.endsWith 'jar'}.each { File file -> moveJarIntoLibs(file)}
我明白了
Error:Could not find com.android.support:support-v13:22.1.1.
Searched in the following locations:
file:/C:/Users/myUser/.m2/repository/com/android/support/support-v13/22.1.1/support-v13-22.1.1.pom
file:/C:/Users/myUser/.m2/repository/com/android/support/support-v13/22.1.1/support-v13-22.1.1.jar
Required by:
com.company.project.sdk.android:project:3.0.0-SNAPSHOT
如果我注释了这一行,则构建成功。
另外,我已经安装了支持库。
任何想法如何支持 Eclipse IDE/解决这个问题?
【问题讨论】:
-
它只搜索了你本地的 m2 文件夹,你有没有尝试添加一个远程依赖仓库,比如
jcenter()或mavenCentral()? -
它可以访问 maven centeral。但正如您可能知道的那样,与 Android 相关的依赖项实际上并不是来自公共存储库。相反,Android Studio 有一个工具来下载所需的 Android 相关依赖项并解决它们。
标签: android eclipse android-gradle-plugin