AdMob returning ClassNotFoundException
I am trying to integrate AdMob in my Unity app but am getting
java.lang.ClassNotFoundException: com.google.android.gms.ads.MobileAds
I used the PlayServicesResolver and it says it finished successfully. Nevertheless, it doesn't work. I made sure I have the latest version of the resolver.
I even tried doing a Force Resolve.
I noticed that during the resolve process a list of play service packages appear for a few moments in the plugins/android folder but they then disappear.
I am using Unity version 2018.1.4.f1
I also tried exporting the app as an AndroidStudio app. Looking at the Gradle file I can see there is no reference anywhere to Play Services.
What am I missing?
Your answer
![](https://koobas.hobune.stream/wayback/20220612165927im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to make this code in google play closed test?? 0 Answers
Failled to re-package resources (google play help) 1 Answer
Admob ads not working no matter waht 1 Answer
Google Mobile Ads Unity Plugin v6.1.1 won't load in Editor. Admob incompatible with Firebase? 1 Answer
CommandInvokationFailure: Failed to re-package resources. 0 Answers