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 Build an Interactive Story App Finishing the User Interface Loading the First Page

Wejdan Al Mubarky
Wejdan Al Mubarky
Courses Plus Student 1,451 Points

when I run the app it crashes.

it says Three errors found : Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes

Error:1 error; aborting

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: Return code 1 for dex process

any ideas ?

Caleb Kemp
Caleb Kemp
12,754 Points

I have not seen that error in particular before, but I'm of the opinion that it's kind of like a missing brace error. The error of course is a missing brace or semi-colon, however, it gives you a weird error code because it doesn't realize that is the problem. For this in particular, I would think, that something is not being referenced or pointed to correctly. I know android files usually are fairly large, otherwise, I would suggest posting the code and maybe I could find it for you. But even then, there wouldn't be any guarantee I could find it. I haven't created a lot of apps with android yet.

Ben Deitch
Ben Deitch
Treehouse Teacher

Try cleaning your project (Build -> Clean Project). Whenever I get an error that doesn't make sense that's usually the first step I take.