INSTALL_FAILED_NO_MATCHING_ABIS when install apk

前端 未结 24 1886
滥情空心
滥情空心 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:39

    This is indeed a strange error that can be caused by multidexing your app. To get around it, use the following block in your app's build.gradle file:

    android {
      splits {
        abi {
            enable true
            reset()
            include 'x86', 'armeabi-v7a'
            universalApk true
        }
      }
      ...[rest of your gradle script]
    
    0 讨论(0)
  • 2020-11-22 08:40

    In the visual studio community edition 2017, sometimes the selection of Supported ABIs from Android Options wont work.

    In that case please verify that the .csproj has the following line and no duplicate lines in the same build configurations.

     <AndroidSupportedAbis>armeabi;armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>
    

    In order to edit,

    1. Unload your Android Project
    2. Right click and select Edit Project ...
    3. Make sure you have the above line only one time in a build configuration
    4. Save
    5. Right click on your android project and Reload
    0 讨论(0)
  • 2020-11-22 08:40

    Quite late, but just ran into this. This is for Xamarin.Android. Make sure that you're not trying to debug in release mode. I get that exact same error if in release mode and attempting to debug. Simply switching from release to debug allowed mine to install properly.

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

    INSTALL_FAILED_NO_MATCHING_ABIS is when you are trying to install an app that has native libraries and it doesn't have a native library for your cpu architecture. For example if you compiled an app for armv7 and are trying to install it on an emulator that uses the Intel architecture instead it will not work.

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

    Visual Studio mac - you can change the support here:

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

    INSTALL_FAILED_NO_MATCHING_ABIS is when you are trying to install an app that has native libraries and it doesn't have a native library for your cpu architecture. For example if you compiled an app for armv7 and are trying to install it on an emulator that uses the Intel architecture instead it will not work.

    Using Xamarin on Visual Studio 2015. Fix this issue by:

    1. Open your xamarin .sln
    2. Right click your android project
    3. Click properties
    4. Click Android Options
    5. Click the 'Advanced' tab
    6. Under "Supported architectures" make the following checked:

      1. armeabi-v7a
      2. x86
    7. save

    8. F5 (build)

    Edit: This solution has been reported as working on Visual Studio 2017 as well.

    Edit 2: This solution has been reported as working on Visual Studio 2017 for Mac as well.

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