java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wEgyptianpost/com.wEgyptianpost.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference


Solutions on the web

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.wEgyptianpost/com.wEgyptianpost.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.santossingh.jokeapp.free/com.santossingh.jokeapp.free.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.****.****/com.****.****.ShareActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Squishy47
, 11 months ago
Unable to start activity ComponentInfo{com.example.sam.myfirstapp/com.example.sam.myfirstapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.publisher.test.adaptiveId/com.example.sdk.test.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TabHost.setup()' on a null object reference

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.novachevskyi.databindingtest/com.novachevskyi.databindingtest.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.novachevskyi.databindingtest.databinding.CustomViewBinding.invalidateAll()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Dinorah Tovar
, 10 months ago
Unable to start activity ComponentInfo{com.XXXX.mg/com.XXXX.view.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.XXXX.view.MainActivity.showShoppingCartIcon()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Gosha98
, 10 months ago
Unable to start activity ComponentInfo{it.brigata.folgore/xyz.klinker.wedding.IntroActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.paolorotolo.appintro.PagerAdapter.notifyDataSetChanged()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Tadhg
, 3 months ago
Unable to start activity ComponentInfo{com.p3_group.v2vapp/com.p3_group.v2vapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.p3_group.v2vapp.ListeningService.continueListening()' on a null object reference

Solution icon of stackoverflow
via Stack Overflow by Atul mishra
, 1 month ago
Unable to start activity ComponentInfo{com.example.mishr.icycandy/com.example.mishr.icycandy.Menu_activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.lang.Object.notify()' on a null object reference

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wEgyptianpost/com.wEgyptianpost.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)

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
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
16 times, 9 months ago
6 times, 1 year ago
12 times, 1 year ago
109 more bugmates