INSTALL_FAILED_NO_MATCHING_ABIS when install apk

前端 未结 24 1919
滥情空心
滥情空心 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
    
    0 讨论(0)
  • 2020-11-22 08:28

    this worked for me ... Android > Gradle Scripts > build.gradle (Module:app) add inside android*

    android {
      //   compileSdkVersion 27
         defaultConfig {
            //
         }
         buildTypes {
            //
         }
        // buildToolsVersion '27.0.3'
    
        splits {
               abi {
                     enable true
                     reset()
                     include 'x86', 'armeabi-v7a'
                     universalApk true
                   }
        }
     }
    

    0 讨论(0)
  • 2020-11-22 08:30

    I faced this issue when moved from Android 7(Nougat) to Android 8(Oreo).

    I have tried several ways listed above and to my bad luck nothing worked.

    So i changed the .apk file to .zip file extracted it and found lib folder with which this file was there /x86_64/darwin/libscrypt.dylib so to remove this i added a code in my build.gradle module below android section (i.e.)

    packagingOptions {
        exclude 'lib/x86_64/darwin/libscrypt.dylib'
        exclude 'lib/x86_64/freebsd/libscrypt.so'
        exclude 'lib/x86_64/linux/libscrypt.so'
    }
    

    Cheers issue solved

    0 讨论(0)
  • 2020-11-22 08:30

    In my case, I needed to download the x86 version of the application.

    1. Go to https://www.apkmirror.com/
    2. Search for the app
    3. Select the first one in the list
    4. Look at the top of the page, where is has [Company Name] > [Application Name] > [Version Number]
    5. Click the Application Name
    6. Click 'All Variants'
    7. The list should contain an x86 variant to download
    0 讨论(0)
  • 2020-11-22 08:30

    In my case setting folowing options helpet me out

    0 讨论(0)
  • 2020-11-22 08:31

    If you using Genymotion you need Installing ARM Translation and GApps

    0 讨论(0)
提交回复
热议问题