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


Michael R.
Michael R.
6,935 Points

Can't run my app on external device(smart phone)

Help, I can't run/test my app on an external device(usb debug). I got several errors.

Error:java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0

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 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1

Can anyone help me understand what's happening? Thanks

2 Answers

Maybe it's becuase your android version is low. It means that your cell phone is old.

Michael R.
Michael R.
6,935 Points

Thanks for the response.

My phone has Android lollipop 5.1.1. I was trying to use the default API level(Android 4.0 IceCream Sandwich).