I want to use android.support.v8 .so in build.gradle defaultConfig :
compileSdkVersion 23
buildToolsVersion '23.0.0'
defaultConfig {
applicationId "com.lengyue.trabsformations"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
}
但我运行它时,android studio报告了一个错误:
错误:任务“:app:dextebug”的执行失败。
COM.ANDROID.Posial.Posial.ExtExist:Orr.GealL.Paltual.Intual.ExExExc:Prime'命令'D:\程序文件\java\bin \java.exe '完成非零出口值2
我修改了sdk和buildtoolsversion到22。这就是:
compileSdkVersion 23
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "com.lengyue.trabsformations"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
renderscriptTargetApi 22
renderscriptSupportModeEnabled true
}
他们负责。他们跑得很正常。
谁能告诉我为什么?我应该在23版中做什么?
最佳答案
你有依赖关系吗?如果不试试这个
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.project"
minSdkVersion 18
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}
关于android - 如何在buildToolsVersion 23中使用android.support.v8,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32293219/