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

FunFacts App unfortunately stopped error while launched in AVD

E/cutils-trace: Error opening trace file: No such file or directory (2)

3 Answers

Did you create a virtual device.. Click on AVD and create virtual device.. Check if SDK is properly installed in SDK Manager..

If your problem is still not resolved checkout GenyMotion.. Ben Sir is having a tutorial library on how to use it.. Its Simple and faster.. I use GenyMotion and it works great!

I have errors like Slow Operation, Skipped 84 frames, AndroidRunTime: Shutting down VM.

Runtime Exception Caused by : java.lang.ClassCastException: in.craveu.funfacts.FunFact$1 cannot be cast to android.view.View$OnKeyListener in.craveu.funfacts.Funfacts.onCreate(Funfacts.java:31) android.app.Activity.performCreate(ActivityThread.java2278) android.app.Activity.Thread.handleLaunchActivity(ActivityThread.java:2390) android.app.Activity.access$800(ActivityThread.java:800) android.app.ActivityThread$H.handleMessage(ActivityThread.java151)

I got these errors after running the Adding the onClick() Method from First Android Library.

Can you post the Funfacts.java class as well as its layout?

Yes I will post it soon!

Try genymotion.. google it now.. and add plugin to android studio.. visit it.. may solve your problem..