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:dexDebug'执行失败。
com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令' D:\ Program Files \ Java \ bin \ java.exe&#39 ;'完成非零退出值2
我modif SDK和buildToolsVersion到22. kike this:
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中做什么?
答案 0 :(得分:1)
你有依赖吗?如果不试试这个
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'
}