的build.gradle(项目:)
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile('com.magnet.mmx:magnet-mmx-client-android:1.9.1@aar') {
transitive = true
}
无法从build.gradle解析com.magnet.mmx:magnet-mmx-client-android:1.9.1
的build.gradle(模块:)
buildscript {
repositories {
jcenter{
url "http://jcenter.bintray.com/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter{
url "http://jcenter.bintray.com/"
}
mavenLocal()
maven {
url "https://repo.magnet.com/artifactory/public"
}
}
}
答案 0 :(得分:0)
在您的应用build.gradle
中,使用此
repositories {
maven {
url "http://repo.magnet.com:8081/artifactory/public/"
}
mavenLocal()
mavenCentral()
}
dependencies {
compile('com.magnet.mmx:magnet-mmx-client-android:1.9.1@aar') {
transitive = true
}
}
您还可以在此网址中找到相关性, http://repo.magnet.com/artifactory/public/com/magnet/mmx/magnet-mmx-client-android/1.9.1/