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

Stack Overflow | Arjan Singh | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Eclipse : Unfortunately (App) has stopped

    Stack Overflow | 10 months ago | Arjan Singh
    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
  2. 0

    Android run time error stating that unable find in manifesto file but I it was added

    Stack Overflow | 4 years ago | user2614247
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.newairways/com.example.newairways.communication}: java.lang.ClassCastException: com.example.newairways.communication cannot be cast to android.app.Activity
  3. 0

    Fragment - Unable to instantiate activity

    Stack Overflow | 3 years ago | RunningWalks
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{app.norman.tennis/app.norman.tennis.fours.AddActivity}: java.lang.ClassCastException: app.norman.tennis.fours.AddActivity cannot be cast to android.app.Activity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    class cast exception error

    Stack Overflow | 4 years ago | Priyanka
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ca.jvsh.livewallpaper/ca.jvsh.livewallpaper.LiveWallpaper}: java.lang.ClassCastException: ca.jvsh.livewallpaper.LiveWallpaper cannot be cast to android.app.Activity
  6. 0

    Why is DialogFragment.onCreateView called when Activity is being Destroyed?

    Stack Overflow | 4 years ago | WindsurferOak
    java.lang.RuntimeException: Unable to destroy activity {com.myapp/com.myapp.activity.FirstFragment}: java.lang.NullPointerException

  1. andreeaa marin 8 times, last 2 months ago
  2. rp 1 times, last 5 months ago
  3. Indri Yunita 320 times, last 4 weeks ago
  4. bmacedo 1 times, last 6 months ago
  5. VeryRedChris 23 times, last 6 months ago
48 more registered users
47 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.ClassCastException

    com.Arjan.acalculator.MainActivity cannot be cast to android.app.Activity

    at android.app.Instrumentation.newActivity()
  2. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.newActivity(Instrumentation.java:1023)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1870)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
    4. android.app.ActivityThread.access$600(ActivityThread.java:122)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:137)
    8. android.app.ActivityThread.main(ActivityThread.java:4340)
    8 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame