-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process 'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero exit value 1 #46
Comments
I think you added the processor as a compile dependency. You should ad it as 'provided', (se in the README). |
Damn, you're right. Stupid mistake.. Thanks for the quick reply! |
Use this ..worked for me defaultConfig { |
Thanks SavAcharya, you saved my life... |
Thank frankiesardo, works for me |
Error:Execution failed for task ':app:preDexDebug'.
please help me |
don forget to clean project and rebuild project,,, |
i see the error, very hard |
I have an error which states
any idea how to resolve this? |
@kiddodhaval I have the same problem with you ,have you solved it? |
Thanks @SavAcharya, you saved my life. |
Error:Execution failed for task ':BaseProject:processReleaseResources'.
clean-rebuild,no use...who can help me? |
可能是app和依赖module中存在同一个lib引用引起的(删除了其中一个android-support-v4.jar解决问题了) ------------------ 原始邮件 ------------------ Error:Execution failed for task ':BaseProject:processReleaseResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\android-sdk-windows\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1 clean-rebuild,no use...who can help me? — |
刚才注销了这个 //compile "com.android.support:support-v4:${supportVersion}" ext { dependencies { android {
} 依然是non-zero exit value 1.。。。 |
did it work? have any same lib on your main project and dependencies library? ------------------ 原始邮件 ------------------ 刚才注销了这个 //compile "com.android.support:support-v4:${supportVersion}" ext { dependencies { android { — |
你有QQ号码?我的511439302 |
Delete android/app/build Folder |
my problem is caused by unmatched version |
我遇到了相同问题,“finished with non-zero exit value 1”,现在解决了,出现的原因是Android studio自动更新某些部件时,某些配置删除了,打开窗口Project Structure -> Appname -> Build Tools Version 内容为value,修改为任意内容即可,如改为23.0.1。 |
thank you SavAcharya,it solved ! |
I Reject Embedded JDK ( in 32bit ) because embedded JDK is 64bit Right click your Project -> Open Module Setting -> SDK Location -> Uncheck Use embedded JDk then set your JDK Path, eg in Ubuntu /usr/lib/jvm/java-8-openjdk-i386 |
Here are some tips for making mistakes:
Is it because of the.9.png? The graphics are not standard? |
hello i am getting the same problem , and not able to build the apk, and build is getting successful but when i try to build apk or try to run the app on device it gives me the following error.
On further inspection in the code it gives me the following error
please let me know if anyone have the solution for it. |
This issue made me pull out lots of my hair. I would suggest running through your dependencies once more for good measure, and make sure libraries that should be the same version are, libraries that depend on a particular version have that version, and you have not redefined dependencies that already transitively come from another dependency you have added. |
@karuhanga You saved my day bro!! |
Hi,
I get an error when I try to run my application.
Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:library:compileLint
:library:copyReleaseLint UP-TO-DATE
:library:preBuild UP-TO-DATE
:library:preReleaseBuild UP-TO-DATE
:library:checkReleaseManifest
:library:preDebugAndroidTestBuild UP-TO-DATE
:library:preDebugBuild UP-TO-DATE
:library:prepareComAndroidSupportSupportV42200Library UP-TO-DATE
:library:prepareReleaseDependencies
:library:compileReleaseAidl UP-TO-DATE
:library:compileReleaseRenderscript UP-TO-DATE
:library:generateReleaseBuildConfig UP-TO-DATE
:library:generateReleaseAssets UP-TO-DATE
:library:mergeReleaseAssets UP-TO-DATE
:library:generateReleaseResValues UP-TO-DATE
:library:generateReleaseResources UP-TO-DATE
:library:mergeReleaseResources UP-TO-DATE
:library:processReleaseManifest UP-TO-DATE
:library:processReleaseResources UP-TO-DATE
:library:generateReleaseSources UP-TO-DATE
:library:compileReleaseJava UP-TO-DATE
:library:extractReleaseAnnotations UP-TO-DATE
:library:mergeReleaseProguardFiles UP-TO-DATE
:library:processReleaseJavaRes UP-TO-DATE
:library:packageReleaseJar UP-TO-DATE
:library:compileReleaseNdk UP-TO-DATE
:library:packageReleaseJniLibs UP-TO-DATE
:library:packageReleaseLocalJar UP-TO-DATE
:library:packageReleaseRenderscript UP-TO-DATE
:library:packageReleaseResources UP-TO-DATE
:library:bundleRelease UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72200Library UP-TO-DATE
:app:prepareComAndroidSupportPaletteV72200Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72200Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42200Library UP-TO-DATE
:app:prepareComDaimajiaAndroidanimationsLibrary113Library UP-TO-DATE
:app:prepareComDaimajiaEasingLibrary100Library UP-TO-DATE
:app:prepareComMcxiaokeViewpagerindicatorLibrary241Library UP-TO-DATE
:app:prepareComNispokSnackbar2106Library UP-TO-DATE
:app:prepareGinsonlineLibraryUnspecifiedLibrary UP-TO-DATE
:app:prepareJpWasabeefRecyclerviewAnimators113Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.util.ExceptionWithContext: no mapping specified for register
at com.android.dex.util.ExceptionWithContext.withContext(ExceptionWithContext.java:45)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:369)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93)
at com.android.dx.command.dexer.Main.processClass(Main.java:729)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
at com.android.dx.command.dexer.Main.access$300(Main.java:83)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:632)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
Caused by: java.lang.RuntimeException: no mapping specified for register
at com.android.dx.ssa.BasicRegisterMapper.map(BasicRegisterMapper.java:63)
at com.android.dx.ssa.SsaInsn.mapRegisters(SsaInsn.java:159)
at com.android.dx.ssa.SsaMethod.mapRegisters(SsaMethod.java:394)
at com.android.dx.ssa.back.SsaToRop.moveParametersToHighRegisters(SsaToRop.java:235)
at com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:118)
at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:69)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:101)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297)
... 15 more
...while processing invoke (Ljava/lang/Object;)Ljava/lang/Object;
...while processing stencil/ast$fn__389.class
1 error; aborting
Error:Execution failed for task ':app:preDexDebug'.
project build.gradle file: http://pastebin.com/rVZj2bwA
module build.gradle file: http://pastebin.com/3aXNH5WT
I also updated my JDK (from 1.7.0_60 to 1.8.0_40), but I'm still getting the same error..
Any idea how I can fix this?
The text was updated successfully, but these errors were encountered: