java.lang.ClassNotFoundException: Didn't find class “com.google.android.gms.ads.MobileAdsInitProvider”

后端 未结 5 1565
旧时难觅i
旧时难觅i 2020-12-17 21:33

I am facing this issue in Android Version 4.4 and below. I have integrated Google admob and when I run the app, the app crashes with ClassNotFoundException.

Please f

5条回答
  •  温柔的废话
    2020-12-17 22:27

    I got a similar error and this solved it.

    android { 
        ...
        compileOptions {
            sourceCompatibility = 1.8
            targetCompatibility = 1.8
        }
    }
    

    I didn't comment in the place posted by Majid Mohammad above, so I added an answer.

提交回复
热议问题