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
Ruggiero A
8,534 PointsBlogReader app doesn't work in Android Studio.
Hi, I'm following Android track and completed BlogReader app along with Eclipse + ADT.
After viewing lessons on Android Studio, and having a lot of troubles with SDKs management in Eclipse (unfixable bugs), I decided to switch on Android Studio.
So I imported BlogReader app and generated even build gradle file, at first it gave me an error on missing api for 19, so I downloaded them and it worked (about compiling). Now, keep in mind that BlogReader app for me was working on Eclipse, now when I run it on Genymotion (great emulator I have to say, 1 second to run an app instead of half minute), it says me "No items to display!". First think I checked is on Internet connection, but there is already. So I checked on the log and I had this error:
11-20 14:39:44.595 1619-1669/com.gsnblog.blogreader E/MainListActivity﹕ Exception caught org.json.JSONException: Unterminated string at character 5973 of {"status":"ok","count":20,"count_total":1900,"pages":95,"posts":[{"id":24453,"url":"http:\/\/blog.teamtreehouse.com\/havent-started-programming-yet","title":"The Real Reason Why Everyone Should Learn to Code","date":"2014-11-20 08:30:48","author":"Dave McFarland","thumbnail":"http:\/\/blog.teamtreehouse.com\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-18-at-11.15.00-AM-150x150.png"},{"id":24462,"url":"http:\/\/blog.teamtreehouse.com\/css-shapes","title":"CSS Shapes","date":"2014-11-19 12:13:20","author":"Jason Seifer","thumbnail":"http:\/\/blog.teamtreehouse.com\/wp-content\/uploads\/2014\/11\/Getting-Started-with-CSS-Shapes-Wrapping-content-around-custom-paths-HTML5-Rocks-2014-11-19-12-11-51-150x150.jpg"},{"id":24445,"url":"http:\/\/blog.teamtreehouse.com\/hour-of-code","title":"It’s Time to Join the Hour of Code","date":"2014-11-19 08:30:49","author":"Joy Kesten","thumbnail":"http:\/������������������������������������������������������������������������������������������������������������``` (there are 3000 more of ? squares)
1 Answer
Ruggiero A
8,534 PointsResolved from myself, I saw another thread really close to this on this forum where an user suggested a quick fix solution
Sam McDavid
20,242 PointsSam McDavid
20,242 PointsI believe this is the post Ruggiero found as I followed this solution and resolved my problem: https://teamtreehouse.com/forum/exception-caught-2