Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Ryan Hord17,688 Points
App would not run
The app would not run on my Nexus emulator. This was the message I received n the Gradle console
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformClassesWithDexForDebug'.
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
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
The phrase - exception in thread "main" - also appeared many times
Seth Kroger56,412 Points
This is not a particularly nice error to diagnose and fix. First try a Clean and Rebuild. It that doesn't work try the build.gradle lines suggested in the top answer here: http://stackoverflow.com/questions/32807587/com-android-build-transform-api-transformexception
Beatriz Fuentes2,207 Points
Most of the time is realeted to RAM issue , ( try closing chrome , or look for java build parameter) . in case you do have a good ram , try clean and rebuilding your project it should work fine after that .