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! While you're at it, check out some resources Treehouse students have shared here.

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

Android

First android app run not working.

Got this error when i tried to run the newly created project without adding any code to it, following the tracks Android program. Error: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

1 Answer

Ben Deitch
STAFF
Ben Deitch
Treehouse Teacher

Hey O Family!

I see this error every once in a while, and I'm not sure why it happens. Though theres a couple things that might fix it:

  1. Clean the project. From the top bar pick Build -> Clean Project.
  2. Fresh restart of Android Studio. From the top bar pick File -> Invalidate Caches / Restart