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 a Weather App (2015) Networking Making an HTTP GET Request with OkHttp

ClassLoader referenced unknown path: /data/app/com.example.anirban.weather_app-1/lib/arm64 while trying to retrieve data

ClassLoader referenced unknown path: /data/app/com.example.anirban.weather_app-1/lib/arm64 08-09 12:06:21.701 27894-27894/com.example.anirban.weather_app W/System: ClassLoader referenced unknown path: /data/app/com.example.anirban.weather_app-1/lib/arm64 08-09 12:06:21.938 27894-27894/com.example.anirban.weather_app W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 08-09 12:06:22.022 27894-27894/com.example.anirban.weather_app V/BoostFramework: mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[]) 08-09 12:06:22.022 27894-27894/com.example.anirban.weather_app V/BoostFramework: mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease() 08-09 12:06:22.022 27894-27894/com.example.anirban.weather_app V/BoostFramework: mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[]) 08-09 12:06:22.022 27894-27894/com.example.anirban.weather_app V/BoostFramework: mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String) 08-09 12:06:22.022 27894-27894/com.example.anirban.weather_app V/BoostFramework: mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop() 08-09 12:06:22.025 27894-27894/com.example.anirban.weather_app V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@3bd8cac 08-09 12:06:22.025 27894-27894/com.example.anirban.weather_app V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@1997d75 08-09 12:06:22.154 27894-27894/com.example.anirban.weather_app D/AndroidRuntime: Shutting down VM

                                                                             --------- beginning of crash

08-09 12:06:22.162 27894-27894/com.example.anirban.weather_app E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.anirban.weather_app, PID: 27894 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.anirban.weather_app/com.example.anirban.weather_app.MainActivity}: android.os.NetworkOnMainThreadException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483) at android.app.ActivityThread.access$900(ActivityThread.java:153) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5441) at java.lang.reflect.Method.invoke(Native Method) a