Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build an Interactive Story App Finishing the User Interface Loading the First Page

Wejdan Al Mubarky
PLUS
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,677 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.