I want to integrate robospice and okhttp in my project, and was trying to run this sample (without maven)... So I followed the steps below:
1- at Intellij, selected File > Import Project > robospice-sample-okhttpclient folder, then clicked next until project was created
3- at File > Project Structure, added all jars as libraries, and the respective dependencies to robospice-sample-okhttpclient module
4- Runned the project with a Nexus 4, the build was completed succesfully
5- When app is starting, I get the following error:
01-21 09:56:39.564: ERROR/AndroidRuntime(18455): FATAL EXCEPTION: main
Process: com.octo.android.robospice.sample.basic, PID: 18455
java.lang.NoClassDefFoundError: com.squareup.okhttp.internal.Util
at com.squareup.okhttp.OkHttpClient.<clinit>(OkHttpClient.java:42)
at com.octo.android.robospice.okhttp.OkHttpSpiceService.createOkHttpClient(OkHttpSpiceService.java:22)
at com.octo.android.robospice.okhttp.OkHttpSpiceService.onCreate(OkHttpSpiceService.java:18)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2572)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
when looking into the project tree, I can´t find this com.squareup.okhttp.internal.Util class, neither at
https://github.com/square/okhttp source... Am I missing something? How can I see this working on my device?
Thanks in advance for any help on this!