【发布时间】:2015-08-26 02:51:21
【问题描述】:
我正在使用 Android Studio 1.4 预览版 3,gradle 插件 1.3。 你好,我上传了一个 aar 包到 bintray jcenter:
https://bintray.com/kevinho/maven/opencore-amr-android/view
我设置了这样的存储库:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
}
allprojects {
repositories {
jcenter()
}
}
当我尝试将其用作依赖项时,
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.hikvh:opencore-amr-android:1.0.0'
}
我收到以下错误:
错误:配置项目 ':app' 时出现问题。 找不到 opencore-amr-android.jar (com.hikvh:opencore-amr-android:1.0.0)。在以下搜索 地点: https://jcenter.bintray.com/com/hikvh/opencore-amr-android/1.0.0/opencore-amr-android-1.0.0.jar
我的问题是: 为什么gradle默认尝试加载jar而不是aar文件? 以及如何解决这个问题?
【问题讨论】:
标签: android maven android-studio gradle