java.lang.NoClassDefFoundError: com.google.ads.AdView

前端 未结 10 1020
面向向阳花
面向向阳花 2020-11-28 13:42

I am attempting to incorporate admob ads in my app. So far I have added the following code in the onCreate method of my app\'s main activity...

    adView =          


        
10条回答
  •  我在风中等你
    2020-11-28 14:08

    Was getting this error updating from android 16 to 20.

    Solved by going to Java Build Path, Order and Export tab, checked and moved GoogleAdMobAdsSdk just under my source. For some reason that fixed it.

    Changing the order back didn't break it. So some setting must have needed to be initialized.

提交回复
热议问题