java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Eclipse : Unfortunately (App) has stopped
    via Stack Overflow by Arjan Singh
    ,
  • class cast exception error
    via Stack Overflow by Priyanka
    ,
  • Application Error
    via GitHub by ox7
    ,
  • How to deliver activity result to fragment
    via Stack Overflow by kimjihong
    ,
    • java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.Arjan.acalculator/com.Arjan.acalculator.MainActivity}: java.lang.ClassCastException: com.Arjan.acalculator.MainActivity cannot be cast to android.app.Activity at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1879) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980) at android.app.ActivityThread.access$600(ActivityThread.java:122) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassCastException: com.Arjan.acalculator.MainActivity cannot be cast to android.app.Activity at android.app.Instrumentation.newActivity(Instrumentation.java:1023) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1870) ... 11 more

    Users with the same issue

    Nisha SinghNisha Singh
    21 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,