【问题标题】:Failed to resolve: com.magnet.mmx:magnet-mmx-client-android:1.9.1无法解决:com.magnet.mmx:magnet-mmx-client-android:1.9.1
【发布时间】:2015-09-22 07:06:05
【问题描述】:

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"
        }
    }    
}

【问题讨论】:

  • 您有问题吗?
  • 无法复制,工作正常

标签: android android-studio android-gradle-plugin build.gradle


【解决方案1】:

在你应用的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
    }
}

你也可以在这个 URL 中找到依赖, http://repo.magnet.com/artifactory/public/com/magnet/mmx/magnet-mmx-client-android/1.9.1/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-01-15
    • 1970-01-01
    • 2019-11-14
    • 1970-01-01
    • 2015-10-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多