android studio运行编译出错

梦的奇幻 2016-04-28 02:13:33

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
...全文
10755 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
frank_799905328 2017-09-30
  • 打赏
  • 举报
回复
真心烦这种奇葩的人类,
JumpingError 2017-02-28
  • 打赏
  • 举报
回复
我的还是不行啊,真不知道怎么回事,我就在这项目里加了一个activity就这样了
shanshan_blog 2016-11-14
  • 打赏
  • 举报
回复
我遇到了类似的问题,是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的版本都升级到相同版本试试,我就是这样解决的
lvgaga 2016-10-23
  • 打赏
  • 举报
回复
解决了么?各位
zh1375543 2016-08-27
  • 打赏
  • 举报
回复
请问您这个问题解决了?
lyfuci 2016-05-17
  • 打赏
  • 举报
回复
你可以先试一下build->clean,然后再重新编译
qq_18071233 2016-05-17
  • 打赏
  • 举报
回复
删掉libs下的v4包试试,我这遇到的是value 2错误,删掉v4包后可以了
fqvip123 2016-05-16
  • 打赏
  • 举报
回复
求问如何解决。。。
梦的奇幻 2016-04-29
  • 打赏
  • 举报
回复
是的,怎么解决呀!!!现在还没弄好了
chen_qi123 2016-04-29
  • 打赏
  • 举报
回复
http://www.phperz.com/article/14/1207/39778.html
dingshuailong 2016-04-28
  • 打赏
  • 举报
回复
这是在是升级到studio 2.0以后编译出来的错误吧
梦的奇幻 2016-04-28
  • 打赏
  • 举报
回复
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

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧