java.lang.RuntimeException

Unable to instantiate activity ComponentInfo{com.example.imtiaz.recognizer/com.example.imtiaz.recognizer.MainActivity}:java.lang.NullPointerException


Solutions on the web38511

Solution icon of stackoverflow
via Stack Overflow by ABi
, 11 months ago
Unable to instantiate activity ComponentInfo{com.example.imtiaz.recognizer/com.example.imtiaz.recognizer.MainActivity}:java.lang.NullPointerException

Solution icon of coderanch
via Coderanch by achuthan mukundarajan, 7 months ago
Unable to instantiate activity ComponentInfo{com.example.searchbarproject/com.example.searchbarproject.MainActivity}: java.lang.NullPointerException

Solution icon of coderanch
via Coderanch by Bod MacNeil, 7 months ago
Unable to instantiate activity ComponentInfo{macson.fifteendaysofjava/macson.fifteendaysofjava.Rock_Paper_Scissor}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to instantiate activity ComponentInfo{com.embedstudios.candycat/com.embedstudios.candycat.CandyLevel}: java.lang.NullPointerException

Solution icon of stackoverflow
via Stack Overflow by adam kim
, 1 year ago
Unable to instantiate activity ComponentInfo{com.mypackage.namespace/com.mypackage.namespace.MyCurrentRestaurants}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to instantiate activity ComponentInfo{com.example.test/com.example.test.Results}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to instantiate activity ComponentInfo{com.example.mycalendar/com.example.mycalendar.MainActivity}: java.lang.NullPointerException

Solution icon of stackoverflow
Unable to instantiate activity ComponentInfo{com.example.flybase2/com.example.flybase2.viewEdit}: java.lang.NullPointerException

Solution icon of stackoverflow
via Stack Overflow by Eulante
, 2 months ago
Unable to instantiate activity ComponentInfo{com.gabriele.tesina/com.gabriele.tesina.AggiungiProdotto}: java.lang.NullPointerException: lock == null

Solution icon of stackoverflow
via Stack Overflow by Stock Dave
, 1 month ago
Unable to instantiate activity ComponentInfo{com.UPFIM.casa/com.UPFIM.casa.Constancias}: java.lang.NullPointerException

Stack trace

  • java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.imtiaz.recognizer/com.example.imtiaz.recognizer.MainActivity}:java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2232) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2362) at android.app.ActivityThread.access$700(ActivityThread.java:168) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:177) at android.app.ActivityThread.main(ActivityThread.java:5493) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1225) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1041) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:116) at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:147) at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:27) at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:50) at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:201) at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:181) at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:521) at android.support.v7.app.AppCompatActivity.findViewById(AppCompatActivity.java:190) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1130) at android.app.Instrumentation.newActivity(Instrumentation.java:1078) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2223) ... 11 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago