问题
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