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".


出現這種錯誤一般是在電腦上用模擬器運行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
        }
    }
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM