如何在buildToolsVersion 23中使用android.support.v8

如何在buildToolsVersion 23中使用android.support.v8,android,android-6.0-marshmallow,Android,Android 6.0 Marshmallow,但当我运行它时,Android Studio报告了一个错误: 错误:任务“:app:dexDebug”的执行失败 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:process'command'D:\Program Files\Java\bin\Java.exe''以非零退出值2结束 我将SDK和buildToolsVersion修改为22。基克: I want t

但当我运行它时,Android Studio报告了一个错误:

错误:任务“:app:dexDebug”的执行失败

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:process'command'D:\Program Files\Java\bin\Java.exe''以非零退出值2结束

我将SDK和buildToolsVersion修改为22。基克:

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
}
由他们来管理。它们运行正常


谁能告诉我为什么?在版本23中我应该做什么?

您有依赖项吗?如果没有,试试这个

compileSdkVersion 23
buildToolsVersion '22.0.1'

defaultConfig {
    applicationId "com.lengyue.trabsformations"
    minSdkVersion 14
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
    renderscriptTargetApi 22
    renderscriptSupportModeEnabled true
}

您是否更新了支持repository@Lengyue我想我会回答你的问题
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'
}