在我的应用程序(MyApp)中,我正在使用另一个项目(Appox)作为库,在这个(Appox)项目中,我想包含来自其存储库的bugsense-jar。现在Appox的的build.gradle,我包括它以这种方式在build.gradle中找不到远程jar
apply plugin: 'android-library'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
repositories {
mavenCentral()
maven { url 'http://www.bugsense.com/gradle/' }
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.bugsense.trace:bugsense:3.6'
}
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
sourceSets {
main {
//....
}
}
}
但是在编译我总是得到错误Failed to find com.bugsense.trace:bugsense:3.6
难道我把它放置在正确的方法是什么?有可能文件甚至不存在于他们的回购中?