Skip to content
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

Error:Execution failed for task: app:transformClassesWithDexForDebug #110

Closed
konopkoman opened this issue Dec 10, 2015 · 6 comments
Closed

Comments

@konopkoman
Copy link

Got this using your lib when trying run my app for debug.

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 2

@rkistner
Copy link
Member

rkistner commented Jan 8, 2016

Check if one of the answers here help:

http://stackoverflow.com/questions/32807587/com-android-build-transform-api-transformexception

@rkistner
Copy link
Member

rkistner commented Feb 6, 2016

Please re-open the issue if the above answers do not help, and you are sure it's only an issue with this library.

@rkistner rkistner closed this as completed Feb 6, 2016
@mrprogramator
Copy link

It's so sad that you can't create your first app in android studio and compile it without changing stupid things. Why should you change an app if it is in blank?? It should be configured as default.

I got this error:

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1

And in all forums I've read, they say to add this:

defaultConfig {
multiDexEnabled true
}

But it doesn't work !!! I've clean it, rebuild it and always appears the same error :(

@FanyCastro
Copy link

Hello,
Can anyone help? I have exactly the same problem when I try to run an application from Android studio in a Mac. I have also done:

dexOptions {
    preDexLibraries true
    maxProcessCount 8
    javaMaxHeapSize "4g"
    // Instead of setting the heap size for the DEX process, increase Gradle's
    // heap size to enable dex-in-process. 
}

defaultConfig {
    multiDexEnabled true
}

@Override
public void onCreate() {
    super.onCreate();
    MultiDex.install(this);

}

@rkistner
Copy link
Member

@FanyCastro The issue is most likely not directly related to this project - StackOverflow will be the best place to ask for help.

@tb56zily
Copy link

If java 8 or above is used then the problem is the libraries we use are incompatible with java 8. So to solve this add these two lines to build.gradle of your app and all sub modules if any. (Android studio clearly show how to do this in error message)

targetCompatibility = '1.7'
sourceCompatibility = '1.7'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants