INSTALL_FAILED_NO_MATCHING_ABIS when install apk

前端 未结 24 1881
滥情空心
滥情空心 2020-11-22 08:12

I tried to install my app into Android L Preview Intel Atom Virtual Device, it failed with error:

INSTALL_FAILED_NO_MATCHING_ABIS

What does

24条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 08:25

    I'm posting an answer from another thread because it's what worked well for me, the trick is to add support for both architectures :

    Posting this because I could not find a direct answer and had to look at a couple of different posts to get what I wanted done...

    I was able to use the x86 Accelerated (HAXM) emulator by simply adding this to my Module's build.gradle script Inside android{} block:

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

    Run (build)... Now there will be a (yourapp)-x86-debug.apk in your output folder. I'm sure there's a way to automate installing upon Run but I just start my preferred HAXM emulator and use command line:

    adb install (yourapp)-x86-debug.apk
    

提交回复
热议问题