INSTALL_FAILED_NO_MATCHING_ABIS when install apk

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

提交回复
热议问题