Eclipse avd error



  • Hi,
    I try to build and run davdroid in eclipse but this fails and I have no idea what could be wrong:

    Any ideas?

    09-26 23:39:39.077: E/AndroidRuntime(552): FATAL EXCEPTION: main
    09-26 23:39:39.077: E/AndroidRuntime(552): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{at.bitfire.davdroid/at.bitfire.davdroid.MainActivity}: java.lang.ClassNotFoundException: at.bitfire.davdroid.MainActivity
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1879)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.app.ActivityThread.access$600(ActivityThread.java:122)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.os.Looper.loop(Looper.java:137)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.app.ActivityThread.main(ActivityThread.java:4340)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at java.lang.reflect.Method.invokeNative(Native Method)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at java.lang.reflect.Method.invoke(Method.java:511)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at dalvik.system.NativeStart.main(Native Method)
    09-26 23:39:39.077: E/AndroidRuntime(552): Caused by: java.lang.ClassNotFoundException: at.bitfire.davdroid.MainActivity
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1870)
    09-26 23:39:39.077: E/AndroidRuntime(552): 	... 11 more
    

  • developer

    Sounds like MainActivity wasn't included in the source directories.

    Without further information, I can't help you. Please read Reporting issues and provide all information mentioned there, including detailled steps to reproduce the issue and verbose logs.