美文网首页
编译报错 :'D:\ProgramTools\Java\

编译报错 :'D:\ProgramTools\Java\

作者: MarkShaun | 来源:发表于2016-07-15 10:18 被阅读339次
    Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
    > com.android.build.api.transform.TransformException:
         java.lang.RuntimeException:
         com.android.ide.common.process.ProcessException:
         java.util.concurrent.ExecutionException:
         com.android.ide.common.process.ProcessException:
         org.gradle.process.internal.ExecException:
     Process 'command 'D:\ProgramTools\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
    

    build.gradle

    ...
    android {
        compileSdkVersion 23
        buildToolsVersion "24.0.0"
        defaultConfig {
            applicationId "com.pioneers.recyclerviewitemanimation"
            minSdkVersion 15
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    ...
    

    原因:buildToolsVersion 版本号过高
    修改buildToolsVersion "24.0.0" -> buildToolsVersion "23.0.2"

    相关文章

      网友评论

          本文标题:编译报错 :'D:\ProgramTools\Java\

          本文链接:https://www.haomeiwen.com/subject/mmryjttx.html