我的覆盆子皮不是x86。
当我安装apk时会出现错误。
The currently selected variant "x86-debug" uses split APKs, but none of the 5 split apks are compatible with the current device with density "213" and ABIs "armeabi-v7a, armeabi" Error while Installing APK
所以,我试着修改gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "my package name"
minSdkVersion 19
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a', 'mips', 'armeabi'
universalApk true
}
}
productFlavors {
x86 {
ndk {
abiFilter "x86"
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(''proguard-android.txt'), 'proguard-rules.pro'
}
debug {
}
}
sourceSets.main {
jni.srcDirs = []
jniLibs.srcDir 'src/main/libs'
}但是在安装apk时也有相同的错误。我认为,我的安卓工作室构建类型的x86。但我的覆盆子型手臂。更改我的构建类型。
请给我建议
谢谢。
发布于 2016-10-19 03:39:51
尝试添加一个新的口味臂:
arm {
ndk {
abiFilters ("armeabi","armeabi-v7a", "arm64-v8a")
}
}应该能起作用。
https://stackoverflow.com/questions/40121359
复制相似问题