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

I have Genymotion and Android Studio. I tryed to run the Blog Reader app in it but it didn't run.

In the Android Studio emulator everything worked, but with Genymotion I got this error:

logcat:

10-17 22:17:32.134 14021402/com.teamtreehouse.blogreaderW/EGL_genymotion﹕ >eglSurfaceAttrib not implemented

10-17 22:17:32.138 1402->1402/com.teamtreehouse.blogreader E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from GradienCache

10-17 22:17:32.138 1402-1402/com.teamtreehouse.blogreader E/OpenGLRenderer﹕ MAX_TEXTURE_SIZE: 8192

10-17 22:17:32.146 1402-1402/com.teamtreehouse.blogreader E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from Caches::initConstraints()

10-17 22:17:32.146 1402-1402/com.teamtreehouse.blogreader E/OpenGLRenderer﹕ MAX_TEXTURE_SIZE: 8192

10-17 22:17:32.146 1402-1402/com.teamtreehouse.blogreader D/OpenGLRenderer﹕ Enabling debug mode 0

10-17 22:17:33.538 1402-1419/com.teamtreehouse.blogreader E/MainListActivity﹕ Exception: org.json.JSONException: Expected ':' after �������������������� at character 3027 of {"status":"ok","count":10,"count_total":1870,"pages":187,"posts":[{"id":24296,"

10-17 22:17:33.546 1402-1402/com.teamtreehouse.blogreader D/dalvikvm﹕ GC_FOR_ALLOC freed 363K, 6% free 7082K/7528K, paused 4ms, total 4ms

10-17 22:17:33.582 1402-1402/com.teamtreehouse.blogreader W/EGL_genymotion﹕ eglSurfaceAttrib not implemented

1 Answer

Your problem is hidden in this part of your error:

MainListActivity﹕ Exception: org.json.JSONException: Expected ':'

You're getting a JSON Exception when parsing through one of your queries in MainListActivity. Check for a line number and maybe make the query in a browser itself to see if perhaps the JSON is being returned incorrectly.