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 tianmaying.com by Unknown author, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.helloworld/com.example.helloworld.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
via Stack Overflow by bkane56
, 2 years ago
Unable to instantiate activity ComponentInfo{com.bkane56.practice.practiceapp/com.bkane56.practice.practiceapp.LeaveAriveActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
via tagwith.com by Unknown author, 2 years ago
Unable to instantiate activity ComponentInfo{com.austinheitmann.stopwatch/com.austinheitmann.stopwatch.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
via Stack Overflow by aheit
, 1 year ago
Unable to instantiate activity ComponentInfo{com.austinheitmann.stopwatch/com.austinheitmann.stopwatch.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
via Stack Overflow by Mark
, 2 years ago
Unable to instantiate activity ComponentInfo{com.aurum.gradebook/com.aurum.gradebook.intro}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
via Stack Overflow by Jack
, 2 years ago
Unable to instantiate activity ComponentInfo{com.jacksteel.comp4/com.jacksteel.comp4.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference	at android.app.Activity.findViewById(Activity.java:2071)	at com.example.helloworld.MainActivity.(MainActivity.java:16)	at java.lang.reflect.Constructor.newInstance(Native Method)	at java.lang.Class.newInstance(Class.java:1572)	at android.app.Instrumentation.newActivity(Instrumentation.java:1065)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2199)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)	at android.app.ActivityThread.access$800(ActivityThread.java:144)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5221)	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:899)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)