升级Android至8.0.0后遇INSTALL_FAILED_NO_MATCHING_ABIS错误求助
Hey there, sorry you're stuck with this installation error after upgrading to Android 8.0.0. I’ve dealt with this exact issue a few times, so let’s walk through some actionable fixes that should get your app installed properly:
Check third-party library ABI support
More often than not, this error pops up because a dependency (like an SDK or AAR package) in your project doesn’t support the ABIs you’ve specified (x86,armeabi-v7a). Go through your module-levelbuild.gradledependencies—if any library only supports other architectures (likearm64-v8aorx86_64), either switch to a version that supports your target ABIs, or add those missing architectures to yoursplitsconfig.Align NDK config with your splits
If your project uses native code (NDK), make sure your NDK settings match the ABIs you’re building for. Add this to your module-levelbuild.gradleunderdefaultConfig:ndk { abiFilters 'x86', 'armeabi-v7a' }Also verify that the NDK version in
local.propertiesis compatible with Android 8.0.Wipe build caches and rebuild
Stale build artifacts can cause unexpected mismatches. Try these steps:- Click
Build > Clean Projectin Android Studio - Follow up with
Build > Rebuild Project - Manually delete the
.gradle,build(root folder), andapp/buildfolders, then rebuild from scratch
- Click
Verify device/emulator ABI compatibility
If you’re using an emulator, double-check that its system image uses one of your supported ABIs (x86orarmeabi-v7a). Some Android 8.0 emulator images default tox86_64, which won’t match your APK. For physical devices, confirm the device’s CPU architecture is in your supported list.Temporarily disable universal APK
Even withuniversalApk true, universal builds can sometimes have hidden ABI mismatches. Try settinguniversalApk falsein yoursplitsconfig, build separate APKs for each ABI, then install the one that matches your device/emulator’s architecture.Check Android 8.0 installation permissions
Android 8.0 introduced stricter rules for installing unknown apps. Ensure you’ve enabled "Unknown sources" in your device settings, or if you’re installing via your app’s code, make sure you’ve requested theREQUEST_INSTALL_PACKAGESpermission.
If none of these steps resolve the issue, sharing more details (like your full module build.gradle or list of dependencies) would help narrow things down further.
内容的提问来源于stack exchange,提问作者Hassan Shah

