zoukankan      html  css  js  c++  java
  • 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
            }
        }
    }
  • 相关阅读:
    Single Number II
    Pascal's Triangle
    Remove Duplicates from Sorted Array
    Populating Next Right Pointers in Each Node
    Minimum Depth of Binary Tree
    Unique Paths
    Sort Colors
    Swap Nodes in Pairs
    Merge Two Sorted Lists
    Climbing Stairs
  • 原文地址:https://www.cnblogs.com/china-soft/p/5823977.html
Copyright © 2011-2022 走看看