Not Able To Update Android Studio 3.1: Conflicting Configuration : 'armeabi-v7a,x86' During Sync Project
Solution 1:
ndk.abiFilters
configuration means that only selected processor architectures of native libraries will be included in the final APK.
On the other hand, splits.abi
.enable true
tells the compiler to generate separated APKs for selected architectures.
It seams that this two configuration can't be set together. So you have two options:
Disable splitting APK (you've figured it out already). Than you will have one APK.
Remove
ndk.abiFilters
setting. Than you will have multiple (probably much smaller) APKs. Moreover, withuniversalApk true
, an universal APK with all architectures will be generated (probably much larger than in option 1).
Than, replace compile
with new keyword implementation
. I think, this is clear from error message.
Solution 2:
Finally I got it working by putting
abi {
enablefalse
reset()
include 'x86', 'armeabi-v7a'
universalApk true
}
and multiDexEnabled true
but I don't know if this sorted out the problem or just ignoring the error.
Solution 3:
I had to add "x86" here:
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86"
}
inside the defaultConfig.
Solution 4:
I opened an old project and when I wanted to build it, I was getting a lot of error which was very frustrating. I replaced compile with implementation and added all the required codes. At last the project built successfully.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation ('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.facebook.android:facebook-android-sdk:4.+'
implementation 'com.facebook.android:account-kit-sdk:4.+'
implementation 'com.android.volley:volley:1.1.0-rc2'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
testImplementation 'junit:junit:4.12'
}
Solution 5:
dependencies {
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.google.android.gms:play-services-maps:9.6.1'
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation ('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-core:9.6.1'//referencia a la version de firebase
implementation 'com.google.firebase:firebase-database:9.6.1'// referencia a la base de datos
implementation 'com.google.firebase:firebase-auth:9.6.1'
implementation 'com.google.android.gms:play-services-auth:9.6.1'
implementation 'com.google.android.gms:play-services-maps:9.6.1'// aqui se agrega la referencia a la autentificacion
}
**replace compile by implemenntation androidCompileTest by androidTestImplementation **
Post a Comment for "Not Able To Update Android Studio 3.1: Conflicting Configuration : 'armeabi-v7a,x86' During Sync Project"