Fail to installing APKs ADV Android Emulator

Fail to installing APKs ADV Android Emulator
0.0 0

#1

Hi,

I try to run the cppTests project in android (following the guide, Android Setup).
With cocos2d-x I get this error when I try to compile and to install apk in my virtual device :
INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113

This is occur only with the AVD. With my phone plugged there is no problem.

I tried with differents virtual devices CPU/ABI like x86 and x86_64, but still the same error.

Is it possible to set up the CPU architecture of the cppTests project ? Or I have to do other thing ?


#2

You have to compile x86 binaries, emulator does not run arm binaries.

In android studio this is done changing
PROP_APP_ABI=armeabi-v7a
to
PROP_APP_ABI=armeabi-v7a:x86
in file gradle.properties


#3

Ok thanks you!