java.lang.RuntimeException: Unable to start activity ComponentInfo{bakaev.myapplication/bakaev.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.setOnTouchListener(android.view.View$OnTouchListener)' on a null object reference

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 Gerges Bakaev
, 1 year ago
Unable to start activity ComponentInfo{bakaev.myapplication/bakaev.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.setOnTouchListener(android.view.View$OnTouchListener)' on a null object reference
via GitHub by thedevleon
, 1 year ago
Unable to start activity ComponentInfo{.../...app.IntroActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.FrameLayout.addView(android.view.View)' on a null object reference
via GitHub by lgyjg
, 5 months ago
Unable to start activity ComponentInfo{com.cv4j.app/com.cv4j.app.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.Toolbar.setNavigationOnClickListener(android.view.View$OnClickListener)' on a null object reference
via GitHub by IgorGanapolsky
, 11 months ago
Unable to start activity ComponentInfo{com.example.sqlbrite.todo.development/com.example.sqlbrite.todo.ui.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.AdapterView.setEmptyView(android.view.View)' on a null object reference
via Stack Overflow by nitzdaking
, 1 year ago
Unable to start activity ComponentInfo{sp.umavibe.com.sp404/sp.umavibe.com.sp404.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Jennings McEnroe
, 1 year ago
Unable to start activity ComponentInfo{com.jen.jennings.catholicprayers/com.jen.jennings.catholicprayers.PrayerDetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{bakaev.myapplication/bakaev.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.setOnTouchListener(android.view.View$OnTouchListener)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Users with the same issue

429 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
9 times, 11 months ago
7 times, 8 months ago
6 times, 4 months ago
109 more bugmates

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