guanxinjing

    我们在创建一个app后,打算安装到Android模拟器上。可能会出现无法安装,或者提示已经安装无法卸载的问题。这个时候需要添加兼容CPU。

选择 build.gradle 文件打开添加如下代码:

android {
    compileSdkVersion 28
    buildToolsVersion \'28.0.2\'
    defaultConfig {
        applicationId "demo.yt.test"
        minSdkVersion 23
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        //cpu框架支持
        splits {
            abi {
                enable true
                reset()
                include \'x86\', \'armeabi-v7a\', \'x86_64\'
                universalApk true
            }
        }
    }
}

 

分类:

技术点:

相关文章:

  • 2021-08-05
  • 2022-03-05
  • 2021-10-03
  • 2021-12-04
  • 2021-06-25
  • 2021-09-19
  • 2021-04-06
  • 2021-12-03
猜你喜欢
  • 2021-09-19
  • 2021-11-07
  • 2021-08-09
  • 2021-06-25
  • 2022-01-15
  • 2022-02-13
  • 2021-10-11
相关资源
相似解决方案