Gradle无法与NXP NFC库同步

时间:2019-04-22 20:15:50

标签: android-studio gradle

转到linux env(架构)后,我无法基于NFC和NXP库(Mifare卡)一起构建我的项目。 Gradle同步过程中构建过程失败。

Android Studio 3.4
Gradle plugin 3.4.0
Gradle wrapper 5.1.1

在具有相同版本的Windows中,构建成功。

在project.gradle

allprojects {
    repositories {
        ...
        flatDir {
            dirs 'libs'
        }
    }
}

在app.gradle中:

...
implementation ('com.nxp.nfclib:nxpnfcandroidlib-1.5@aar') {
        transitive = true
}
...

出现错误

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Failed to transform artifact 'nxpnfcandroidlib-1.5.aar (com.nxp.nfclib:nxpnfcandroidlib-1.5:)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Failed to transform artifact 'nxpnfcandroidlib-1.5.aar (com.nxp.nfclib:nxpnfcandroidlib-1.5:)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Failed to transform artifact 'nxpnfcandroidlib-1.5.aar (com.nxp.nfclib:nxpnfcandroidlib-1.5:)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Failed to transform artifact 'nxpnfcandroidlib-1.5.aar (com.nxp.nfclib:nxpnfcandroidlib-1.5:)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Failed to transform artifact 'nxpnfcandroidlib-1.5.aar (com.nxp.nfclib:nxpnfcandroidlib-1.5:)' to match attributes {artifactType=jar}
Show Details
Affected Modules: app

0 个答案:

没有答案