I have troubles with instrumented tests in Android Studio. When I want to run the instrumented tests on an emulator (Nexus 5 API 24, x86) with command gradlew connectedAndroidTest
, it fails with INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113
error. But I can normally install the app on the emulator, no problem. It fails only during tests. And the tests runs perfectly on a physical device (Samsung Galaxy S8 or Huawei GRA-L09).
As I saw in another thread, I added this in my gradle file, but it didn't solve the problem :
splits {
abi {
enable true
reset()
include 'x86', 'x86_64', 'armeabi-v7a'
universalApk true
}
}
I also tried to run a new emulated device with another CPU/API (x86_64 or armeabi-v7a), didn't help.
I'm running Android Studio 3.0.1 with gradle version 4.1
Any idea ?