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 'E:\Java\jdk1.8.0_92\bin\java.exe'' finished with non-zero exit value 3

解决方案 »

  1.   

    Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:assembleDebug]
    :app:clean
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE
    :app:checkDebugManifest
    :app:preReleaseBuild UP-TO-DATE
    :app:prepareComAndroidSupportSupportV42400Alpha2Library
    :app:prepareComZhyOkhttputils238Library
    :app:prepareDebugDependencies
    :app:compileDebugAidl
    :app:compileDebugRenderscript
    :app:generateDebugBuildConfig
    :app:mergeDebugShaders
    :app:compileDebugShaders
    :app:generateDebugAssets
    :app:mergeDebugAssets
    :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources
    :app:mergeDebugResources
    :app:processDebugManifest
    :app:processDebugResources
    :app:generateDebugSources
    :app:mockableAndroidJar UP-TO-DATE
    :app:preDebugUnitTestBuild UP-TO-DATE
    :app:prepareDebugUnitTestDependencies
    :app:preDebugAndroidTestBuild UP-TO-DATE
    :app:prepareDebugAndroidTestDependencies
    :app:compileDebugAndroidTestAidl
    :app:processDebugAndroidTestManifest
    :app:compileDebugAndroidTestRenderscript
    :app:generateDebugAndroidTestBuildConfig
    :app:mergeDebugAndroidTestShaders
    :app:compileDebugAndroidTestShaders
    :app:generateDebugAndroidTestAssets
    :app:mergeDebugAndroidTestAssets
    :app:generateDebugAndroidTestResValues UP-TO-DATE
    :app:generateDebugAndroidTestResources
    :app:mergeDebugAndroidTestResources
    :app:processDebugAndroidTestResources
    :app:generateDebugAndroidTestSources
    :app:incrementalDebugJavaCompilationSafeguard
    :app:compileDebugJavaWithJavac
    :app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    注: 某些输入文件使用或覆盖了已过时的 API。
    注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
    注: 某些输入文件使用了未经检查或不安全的操作。
    注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    :app:compileDebugNdk UP-TO-DATE
    :app:compileDebugSources
    :app:buildInfoDebugLoader
    :app:transformClassesWithExtractJarsForDebug
    :app:transformClassesWithInstantRunVerifierForDebug
    :app:transformClassesWithJavaResourcesVerifierForDebug UP-TO-DATE
    :app:mergeDebugJniLibFolders
    :app:transformNative_libsWithMergeJniLibsForDebug
    :app:processDebugJavaRes UP-TO-DATE
    :app:transformResourcesWithMergeJavaResForDebug
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is *not* an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(com.tencent.smtt.sdk.bb) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is *not* an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(com.tencent.smtt.sdk.a.c) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is *not* an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(com.tencent.smtt.utils.f) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is *not* an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(com.tencent.smtt.utils.g) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is *not* an inner class.
    Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
    Error:(com.tencent.smtt.utils.n) that doesn't come with an
    Error:associated EnclosingMethod attribute. This class was probably produced by a
    Error:compiler that did not target the modern .class file format. The recommended
    Error:solution is to recompile the class from source, using an up-to-date compiler
    Error:and without specifying any "-target" type options. The consequence of ignoring
    Error:this warning is that reflective operations on this class will incorrectly
    Error:indicate that it is *not* an inner class.
    Error:UNEXPECTED TOP-LEVEL ERROR:
    Error:java.lang.OutOfMemoryError: GC overhead limit exceeded
    Error: at com.android.dx.ssa.Dominators$DfsWalker.visitBlock(Dominators.java:259)
    Error: at com.android.dx.ssa.SsaMethod.forEachBlockDepthFirst(SsaMethod.java:783)
    Error: at com.android.dx.ssa.Dominators.run(Dominators.java:185)
    Error: at com.android.dx.ssa.Dominators.make(Dominators.java:90)
    Error: at com.android.dx.ssa.DomFront.run(DomFront.java:86)
    Error: at com.android.dx.ssa.SsaConverter.placePhiFunctions(SsaConverter.java:297)
    Error: at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:51)
    Error: at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98)
    Error: at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
    Error: at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:299)
    Error: at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
    Error: at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
    Error: at com.android.dx.command.dexer.Main.processClass(Main.java:682)
    Error: at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
    Error: at com.android.dx.command.dexer.Main.access$600(Main.java:78)
    Error: at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    Error: at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    Error: at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    Error: at com.android.dx.command.dexer.Main.processOne(Main.java:596)
    Error: at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
    Error: at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
    Error: at com.android.dx.command.dexer.Main.run(Main.java:230)
    :app:transformClassesWithDexForDebug FAILED
    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 'E:\Java\jdk1.8.0_92\bin\java.exe'' finished with non-zero exit value 3
    Information:BUILD FAILED
    Information:Total time: 2 mins 1.777 secs
    Information:1,827 errors
    Information:0 warnings
    Information:See complete output in console
      

  2.   

    这是在是升级到studio 2.0以后编译出来的错误吧
      

  3.   

    http://www.phperz.com/article/14/1207/39778.html
      

  4.   

    你可以先试一下build->clean,然后再重新编译
      

  5.   

    删掉libs下的v4包试试,我这遇到的是value 2错误,删掉v4包后可以了
      

  6.   

    我遇到了类似的问题,是sdk的,'E:\PublicFile\android\android-sdk_r24.1.2-windows\android-sdk-windows\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1,应该是版本的问题,你把你项目中jdk的版本都升级到相同版本试试,我就是这样解决的
      

  7.   

    我的还是不行啊,真不知道怎么回事,我就在这项目里加了一个activity就这样了