INSTALL_FAILED_NO_MATCHING_ABIS when install apk

前端 未结 24 2385
滥情空心
滥情空心 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]
    

提交回复
热议问题