Program type already present: androidx.arch.core.internal.SafeIterableMap$Entry [closed]

人走茶凉 提交于 2020-04-30 11:39:05

问题


I've created a Unity app with firebase and Admob, then exported to android and generated aar file as a library, as I import that implement in native app it throws these erros:

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "android.unityembed"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

configurations {
    compile.exclude group: 'androidx.annotation', module: 'annotation'
}

dependencies {
    implementation(project(':Tespr2-debug'`enter code here`)){
        exclude group: 'android.arch.core' }
   //implementation project(":Tespr2-debug")
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

来源:https://stackoverflow.com/questions/58587580/program-type-already-present-androidx-arch-core-internal-safeiterablemapentry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!