Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Arjan Singh
, 1 year ago
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
via Stack Overflow by user2614247
, 2 years ago
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
via Stack Overflow by RieJack
, 2 years ago
Unable to instantiate activity ComponentInfo{com.example.john/com.example.john.First_Activity}: java.lang.ClassCastException: com.example.john.First_Activity cannot be cast to android.app.Activity
via Stack Overflow by Unknown author, 2 years ago
Unable to instantiate activity ComponentInfo{com.example.listfragmentexample2/com.example.listfragmentexample2.Fragment1}: java.lang.ClassCastException: com.example.listfragmentexample2.Fragment1 cannot be cast to android.app.Activity
via Stack Overflow by Moudiz
, 11 months ago
Unable to instantiate activity ComponentInfo{com.justedhak.www.test/com.justedhak.www.test.MainActivity}: java.lang.ClassCastException: com.justedhak.www.test.MainActivity cannot be cast to android.app.Activity
via Stack Overflow by Lukazs Pioetrszci
, 1 year ago
Unable to instantiate activity ComponentInfo{lukazs.newapps/lukazs.newapps.MainActivity}: java.lang.ClassCastException: lukazs.newapps.MainActivity cannot be cast to android.app.Activity
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)	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)