java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.ahirrao.gps/com.example.ahirrao.gps.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2264) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)

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 Mrunal Ahirrao
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.ahirrao.gps/com.example.ahirrao.gps.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2264) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
via Stack Overflow by Arnav Jain
, 1 year ago
Unable to instantiate activity ComponentInfo{com.A_apps.test_im/com.A_apps.test_im.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
via Stack Overflow by stokexx
, 2 years ago
Unable to start activity ComponentInfo{com.ex.app/com.ex.app.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
via Stack Overflow by Halide Yildiz
, 1 year ago
Unable to start activity ComponentInfo{com.gor.hocam/com.gor.hocam.MainActivity}: android.view.InflateException: Binary XML file line #56: Error inflating class me.grantland.widget.AutofitTextView at android.app.ActivityThread.performLaunchActivity
via Stack Overflow by user3289794
, 2 years ago
Unable to instantiate activity ComponentInfo{martin.productions.counter/martin.productions.counter.Counter}: java.lang.ClassNotFoundException: Didn't find class "martin.productions.counter.Counter" on path: DexPathList[[zip file
via Stack Overflow by user3848825
, 1 year ago
Unable to start activity ComponentInfo{com.mayi.app/com.mayi.app.Splash}: android.view.InflateException: Binary XML file line #22: Error inflating class com.purologics.maayi.font.MyTextView at android.app.ActivityThread.performLaunchActivity
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.ahirrao.gps/com.example.ahirrao.gps.MainActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2264) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
at com.example.ahirrao.gps.MainActivity.(MainActivity.java:53)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1215)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.