Hi there,
I'm new to android development.
I followed the getting started page to build the example apk file of image classifier.
The build succeded, but when I install on the emulator (run app), it shows error: "INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113."
I look up the error message, and it often occurs when the apk's target cpu architecture is different from current machine. But I try with different architecture's emulator, none of them works.
I also try to install on my S845 phone, the phone just shows it can't open the apk file. I'm sure I've toggled on installing untrusted apk source.
Any idea?
I was facing the same issue while running the app in the emulator.
Go to module build.gradle and within Android block add this script:
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a', 'x86_64'
universalApk true
}
}
And sync project.