not able to update android studio 3.1: Conflicting configuration : 'armeabi-v7a,x86' during sync project

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:

  1. Disable splitting APK (you've figured it out already). Than you will have one APK.

  2. Remove ndk.abiFilters setting. Than you will have multiple (probably much smaller) APKs. Moreover, with universalApk 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.


Finally I got it working by putting

abi {
    enable false
    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.