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
Unfortunately, Blog Reader has stopped
when i run my app on the emulator, it says "Unfortunately, Blog Reader has stopped. I am using android studio.
Please Help ASAP!
Harry James14,780 Points
It sounds as though this is an issue with your emulator rather than your app.
Please follow the instructions below for the corresponding emulator:
Go to AVD Manager >> Click the Pencil icon/Edit icon beside the device you are using >> Click Show Advanced Settings >> Make sure Use Host GPU is checked.
If you have made sure that you have Use Host GPU checked, from the same screen, increase the RAM amount (You are getting this error because your emulator is running out of video memory):
Open Genymotion >> Click on the Settings icon beside the device you are using >> Increase the RAM amount (You are getting this error because your emulator is running out of video memory):
If this does not fix the issue, open Oracle VM VirtualBox >> Click Settings with the device you are using selected >> Go to System and increase the Base Memory.
If again, it is still not fixed, from the same screen, go to Display and increase the Video Memory:
Hope it helps and if you have any more issues, give me a shout :)
In the xml layout file for your MainActivity, is your ListView id set to "@android:id/list" ? If not, try setting it to that.
Im pretty sure its a problem with my code because when I run it on a real device it still doesn't show the list view
it is still not working