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 faisal1208
, 1 year ago
Unable to start activity ComponentInfo{com.example.accurat.webaccess/com.example.accurat.webaccess.MainActivity}: java.lang.ClassCastException: com.example.accurat.webaccess.MainActivity cannot be cast to android.widget.AdapterView$OnItemClickListener
via anddev.it by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.arnold.itsosgadda/com.example.arnold.itsosgadda.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setOnItemClickListener(android.widget.AdapterView$OnItemClickListener)' on a null object reference
via GitHub by shuncaigao
, 1 year ago
Unable to start activity ComponentInfo{ com.k.k com.k.k.activity.MainActivity}: java.lang.ClassCastException: android.view.View cannot be cast to android.view.ViewGroup
via GitHub by wenmingvs
, 1 year ago
Unable to start activity ComponentInfo{com.wenming.weiswift/com.wenming.weiswift.ui.login.fragment.post.picselect.activity.AlbumActivity}: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.RelativeLayout
via Stack Overflow by kikinet
, 2 years ago
Unable to start activity ComponentInfo{cz.jacon.goldympos/cz.jacon.goldympos.activities.CustomerDetailActivity}: java.lang.ClassCastException: org.json.JSONObject$1 cannot be cast to java.lang.String
via Stack Overflow by akkie4396
, 1 year ago
Unable to start activity ComponentInfo{com.pixalstudio.musicadda/com.pixalstudio.musicadda.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.Toolbar cannot be cast to android.widget.Toolbar
java.lang.ClassCastException: com.example.accurat.webaccess.MainActivity cannot be cast to android.widget.AdapterView$OnItemClickListener	at com.example.accurat.webaccess.MainActivity.onCreate(MainActivity.java:64)	at android.app.Activity.performCreate(Activity.java:5990)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)	at android.app.ActivityThread.access$800(ActivityThread.java:151)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5254)	at java.lang.reflect.Method.invoke(Native Method)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)