Android studio apk mounted to the simulator, the installation fails, error: INSTALL_FAILED_NO_MATCHING_ABIS

Copyright: come, do not argue with bald? Burnished burnished kind Oh, Great God reprint please indicate the source https://blog.csdn.net/yue_233/article/details/90903480

Android studio apk mounted to the simulator, the installation fails, error: INSTALL_FAILED_NO_MATCHING_ABIS

I do not understand encounter this problem, I usually very calm open Baidu, look at how great God who CSDN say, is almost certain to be a problem VM cpu, because some applications that use native libraries (NDK , Native Lib), to compile these libraries are often the target arm architecture cpu, running on x86 will be reported such a mistake. God has made a big solution, in build.gradle (Module: app) android {} inside the module which can be solved adding a line of code:

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

---------------------------- but --------------------- -------
question I get is: installation can be installed, but can not run ... apk opened hung up, the Find UnsatisfiedLinkError could not " XXXX.so "
you can only move the zoom ( ten million do not try ), re-create a virtual machine ARM system, Andrews simulator CPU / ABI general now there are three types, INTEL X86, ARM, MIPS, caring Android studio to give us ready, you can quickly create a new simulator use:
Here Insert Picture Description
then open the newly created arm simulator, run up and tears out the results of the simulator card ( front so that you do not try )
so I teared up in, with the final program:
1. (do not want to try this step Please read on) the simulator Android studio comes off, the kind of thorough, then Baidu search simulator, there will be a lot, every day, what simulator, a god simulator, installed on a pick, then run you will find it in your Connecteds devices appear, click OK, apk should be able to install and run an invalid (the god of the case method, you can try this step )

2. Android older machines out of their own collection for many years, open the phone debug mode, allow debugging (if not connected to a computer, download a brush machine wizard, or 360 phone assistant ( not advertising, if I can, I never installed the software )), and then run it, you will find on the phone, apk installation was successful, but also run the drawbacks (simulators, often some real machine does not appear on the unknown bug )

3. There is a big God I did not try to solve the way, if the previous method did not use, you can look at this ... B station barrage ...

Currently encounter is like this, there is a problem in the future to add, please point out deficiencies or errors ...

Guess you like

Origin blog.csdn.net/yue_233/article/details/90903480