Reputation:
I tried running react-native run-android while my emulator was running but it throws this error:
Skipping device 'Nexus_5X_API_28(AVD) - 9' for 'app:debug': Could not find build of variant which supports density 420 and an ABI in x86
I tried to google it but most of the answers were too old and did not work. I tried the adb reverse but still it fails.
Upvotes: 5
Views: 4321
Reputation: 13926
Module:Check out build.gradle from app. There are the following configurations:
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64', 'x86'
}
This will work for you. I tried on React-native-android.
Upvotes: 7
Reputation: 94
As @hong-developer mentioned, adding the "x86"
worked for me.
Go to your project\android\app\build.gradle
then:
...
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false
include "armeabi-v7a", "arm64-v8a", "x86_64", "x86"
}
}
...
Upvotes: 3