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 Amir133
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.connection/com.example.connection.Messages}: java.lang.NullPointerException
via Stack Overflow by codePG
, 2 years ago
Unable to instantiate activity ComponentInfo{com.example.libraryhelpdesk/com.example.libraryhelpdesk.B_Search}: java.lang.NullPointerException
via Stack Overflow by user3747512
, 2 years ago
Unable to instantiate activity ComponentInfo{com.example.piechartexample/com.example.piechartexample.MainActivity}: java.lang.NullPointerException
via Stack Overflow by Jordan Iatro
, 2 years ago
Unable to instantiate activity ComponentInfo{com.example.packageit/com.example.packageit.HomePage}: java.lang.NullPointerException
via Stack Overflow by JamesYTL
, 2 years ago
Unable to instantiate activity ComponentInfo{com.ytl.test/com.ytl.test.MainActivity}: java.lang.NullPointerException
via Stack Overflow by TheQ
, 2 years ago
Unable to instantiate activity ComponentInfo{com.lorentzos.swipecards.example/com.lorentzos.swipecards.MyActivity}: java.lang.NullPointerException
java.lang.NullPointerException: 	at android.app.Activity.findViewById(Activity.java:1899)	at com.example.connection.Messages.(Messages.java:23)	at java.lang.Class.newInstanceImpl(Native Method)	at java.lang.Class.newInstance(Class.java:1215)	at android.app.Instrumentation.newActivity(Instrumentation.java:1061)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2255)