octo-technology/RoboSpice-samples

Unable to run robospice-sample-okhttp sample

Opened this issue · 0 comments

Very strange issue, all other samples work correctly except for this one. What I did: imported robospice-sample-okhttp project as Maven project, run as Android application (these steps worked for all other robospice samples), I get the following logcat error:

05-17 12:40:57.746: E/AndroidRuntime(4359): Process: com.octo.android.robospice.sample.basic, PID: 4359
05-17 12:40:57.746: E/AndroidRuntime(4359): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.octo.android.robospice.sample.basic/com.octo.android.robospice.sample.okhttp.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.octo.android.robospice.sample.okhttp.MainActivity" on path: DexPathList[[zip file "/data/app/com.octo.android.robospice.sample.basic-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.octo.android.robospice.sample.basic-1, /system/lib]]
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.os.Handler.dispatchMessage(Handler.java:102)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.os.Looper.loop(Looper.java:136)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.app.ActivityThread.main(ActivityThread.java:5017)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at java.lang.reflect.Method.invokeNative(Native Method)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at java.lang.reflect.Method.invoke(Method.java:515)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at dalvik.system.NativeStart.main(Native Method)
05-17 12:40:57.746: E/AndroidRuntime(4359): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.octo.android.robospice.sample.okhttp.MainActivity" on path: DexPathList[[zip file "/data/app/com.octo.android.robospice.sample.basic-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.octo.android.robospice.sample.basic-1, /system/lib]]
05-17 12:40:57.746: E/AndroidRuntime(4359):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
05-17 12:40:57.746: E/AndroidRuntime(4359):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
05-17 12:40:57.746: E/AndroidRuntime(4359):     ... 11 more