Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ClassNotFoundException in ad.loadClass in Android 9 (API 28)

Tags:

android

admob

I have an app in the production, and some of the users in Android 9 are getting this error:

 ClassNotFoundException in ad.loadClass in Android 9 (API 28)

Here is more detailed report, it seems that something wrong with ads. I'm using this version of google ads:

implementation 'com.google.android.gms:play-services-ads:17.1.1'

Any ideas how to fix it?

enter image description here

like image 786
Lucky_girl Avatar asked Jan 08 '19 19:01

Lucky_girl


1 Answers

I added to Manifest, this line, and it seems that this error disappeared:

 <uses-library android:name="org.apache.http.legacy" android:required="false" />
like image 123
Lucky_girl Avatar answered Oct 23 '22 05:10

Lucky_girl