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.
FATAL EXCEPTION: OkHttp Dispatcher Process: toma.stormy, PID: 1287 java.lang.NoSuchMe
i download okHttp-2.3.0.jar from http://square.github.io/okhttp/, then i copy and past the jar file to my folder libs in 'src/main/lib, i have update build.gradle(app) with compile fielTree 'src/main/libs', then after i give internet permission, i tried and get fatal exception. can u help u? thx.
Hitesh Bisht2,215 Points
Add this permission as well in the android manifest file. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
This is mostly a stab in the dark at the moment. I'm not seeing anything that is popping out immediately. Could you remove the file from your libs directory, remove the line compile fileTree('src/main/libs') from your build.gradle file and add in its place compile 'com.squareup.okhttp:okhttp:2.3.0'
Could you also post the full error output to help track this done more?
Could you also add
to your build.gradle file in addition to the changes I previously mentioned?