Forums - Can't install example apk file: image-classifier

2 posts / 0 new
Last post
Can't install example apk file: image-classifier
haroldyang977
Join Date: 15 May 18
Posts: 4
Posted: Wed, 2018-05-16 00:27

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?

 

 

 

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Mon, 2019-01-21 05:57

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.

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.