java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.test2/com.example.test2.activity_main}: java.lang.ClassNotFoundException: com.example.test2.activity_main

Stack Overflow | adamsc | 3 months ago
  1. 0

    Unable to instantiate main activity - ClassNotFound

    Stack Overflow | 3 months ago | adamsc
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.test2/com.example.test2.activity_main}: java.lang.ClassNotFoundException: com.example.test2.activity_main
  2. 0

    NullPointerException on MrNom

    Stack Overflow | 2 years ago | SnapNikon
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.badlogic.androidgames.mrnom/com.badlogic.androidgames.mrnom.MrNom}: java.lang.ClassNotFoundException: com.badlogic.androidgames.mrnom.MrNom
  3. 0

    Android Linear Calendar java.lang.RuntimeException

    Stack Overflow | 2 years ago | twomeyc4
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{cs.nuim.ie.finaltimeline/cs.nuim.ie.finaltimeline.MainActvity}: java.lang.ClassNotFoundException: cs.nuim.ie.finaltimeline.MainActvity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to instantiate activity component when running android example code

    Stack Overflow | 4 years ago | Jolin
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.effectivenavigation/com.example.android.effectivenavigation.MainActivity}: java.lang.ClassNotFoundException: com.example.android.effectivenavigation.MainActivity
  6. 0

    Imported project crashes immediately -> FATAL EXCEPTION: ...Unable to instantiate activity ComponentInfo

    Stack Overflow | 4 years ago | user743974
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{research.diabetes.android/research.diabetes.android.appcore.MobileUnitActivity}: java.lang.ClassNotFoundException: research.diabetes.android.appcore.MobileUnitActivity

  1. ajinkya_w 3 times, last 2 months ago
  2. Andreas Häber 1 times, last 2 months ago
  3. aakash 3 times, last 4 months ago
  4. asvid 2 times, last 6 months ago
  5. Saravana Kumar Chinnaraj 25 times, last 8 months ago
48 more registered users
35 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.example.test2.activity_main

    at dalvik.system.BaseDexClassLoader.findClass()
  2. Android Platform
    BaseDexClassLoader.findClass
    1. dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    1 frame
  3. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    2 frames
  4. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.newActivity(Instrumentation.java:1053)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    4. android.app.ActivityThread.access$600(ActivityThread.java:130)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:137)
    8. android.app.ActivityThread.main(ActivityThread.java:4745)
    8 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame