NileshJarad / andar

Automatically exported from code.google.com/p/andar
0 stars 0 forks source link

ClassLoader error on example running. #102

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, i've just installed the andar on eclipse and managed to compile the project 
but after i try to run it crashes with this error:

11-26 15:24:33.115: E/AndroidRuntime(11154): FATAL EXCEPTION: main
11-26 15:24:33.115: E/AndroidRuntime(11154): java.lang.RuntimeException: Unable 
to instantiate activity 
ComponentInfo{edu.dhbw.andar.sample/edu.dhbw.andar.sample.CustomActivity}: 
java.lang.ClassNotFoundException: edu.dhbw.andar.sample.CustomActivity
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1891)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.app.ActivityThread.access$600(ActivityThread.java:127)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.os.Looper.loop(Looper.java:137)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.app.ActivityThread.main(ActivityThread.java:4441)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
java.lang.reflect.Method.invokeNative(Native Method)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
java.lang.reflect.Method.invoke(Method.java:511)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
dalvik.system.NativeStart.main(Native Method)
11-26 15:24:33.115: E/AndroidRuntime(11154): Caused by: 
java.lang.ClassNotFoundException: edu.dhbw.andar.sample.CustomActivity
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
java.lang.ClassLoader.loadClass(ClassLoader.java:501)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
java.lang.ClassLoader.loadClass(ClassLoader.java:461)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.app.Instrumentation.newActivity(Instrumentation.java:1023)
11-26 15:24:33.115: E/AndroidRuntime(11154):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1882)
11-26 15:24:33.115: E/AndroidRuntime(11154):    ... 11 more

I'm running on sony xperia smartphone with android 4.0. I also tried to run on 
a samsung tablet with android 3.2.

Any ideas? Thank you.

Original issue reported on code.google.com by gmac...@gmail.com on 26 Nov 2012 at 5:21

GoogleCodeExporter commented 9 years ago
Hi, I had same issue and after breaking my head... solution was changing lib 
folder's name.
Just move everything from ./lib folder to ./libs

Original comment by nachova...@gmail.com on 31 Dec 2012 at 8:41