首页 > 其他 > 详细

The currently selected variant "arm-debug" uses split APKs, but none of the 1 split apks are compatible with the current device with density "213" and ABIs "x86".

时间:2016-08-31 00:23:41      阅读:1669      评论:0      收藏:0      [点我收藏+]

出现这种错误一般是在电脑上用模拟器运行APK的吧.

 

可以在build.gradle中这样配置下:

 

 

android{
    ...
    defaultConfig {
    applicationId "XXXXXXX"
    minSdkVersion 11
    targetSdkVersion 21
    versionCode 126
    versionName "1.2.6"
  
    ndk {
        //设置支持的SO库架构
        abiFilters ‘armeabi‘ //, ‘x86‘, ‘armeabi-v7a‘, ‘x86_64‘, ‘arm64-v8a‘
        moduleName "app"
    }
    ....
    
    splits {
        abi {            enable true
            reset()
            include ‘x86‘, ‘armeabi-v7a‘, ‘mips‘
            universalApk true
        }
    }
}

 

 

android{
    ...
    defaultConfig {
    applicationId "XXXXXXX"
    minSdkVersion 11
    targetSdkVersion 21
    versionCode 126
    versionName "1.2.6"
  
    ndk {
        //设置支持的SO库架构
        abiFilters ‘armeabi‘ //, ‘x86‘, ‘armeabi-v7a‘, ‘x86_64‘, ‘arm64-v8a‘
        moduleName "app"
    }
    ....
    
    splits {
        abi {            enable true
            reset()
            include ‘x86‘, ‘armeabi-v7a‘, ‘mips‘
            universalApk true
        }
    }
}

 

The currently selected variant "arm-debug" uses split APKs, but none of the 1 split apks are compatible with the current device with density "213" and ABIs "x86".

原文:http://www.cnblogs.com/china-soft/p/5823977.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!