Osama Alharbi
Osama Alharbi

Reputation: 11

install gluom App ADT via ADB and I get error"INSTALL_FAILED_NO_MATCHING_ABIS"

I try to install my app that build usin javafxports via ADB, or copy apk and install. bat i got error.

adb -s emulator-5554 install MyApp.apk
adb: failed to install MyApp.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

I use [android studio emulator],[virtualBox],[MEmu]

android target [Android 5.1]

Upvotes: 1

Views: 234

Answers (1)

Mos
Mos

Reputation: 11

Since my previous answer was not technical enough, basically one solution is to set the following parameters to fix the issue:

splits {
        abi {
            enable true
            reset()
            include 'x86', 'armeabi-v7a'
            universalApk true
        }
    }

but since the plugin doesn't expose those parameters or there is not enough information, I did the following:

I installed the NDK locally, modified the application.mk file under jni/ directory and added all the architectures list arguments (it's easy to find on application.mk). Then, I passed the NDK that I installed locally as an argument for the client:build, client:package, client:compile etc...

It worked and the apks were produced as per that fix. BUT,

After disabling Play security on Android and signing the apk using apkverify and attempted also to install via adb to the device, all of them produced the same error "App not installed". As for the emulator, I still got the same error the asker of the question got despite the fact everything seems setup correctly and didn't miss anything in the documentation provided by Gluon.

I hope this answer is better.

Maybe I missed something but this might help.

You can find more information about NDK here: https://docs.gluonhq.com/#platforms_android

Upvotes: 1

Related Questions