Cordova AdMob – fixing com.google.android.gms:play-services-base:8.4.0

When I was trying to implement AdMob banner in my app i faced a lot of difficulties. The biggest of them: Not found com.google.android.gms:play-services-ads:+. Let’s check how to fix it.

First of all, you should know, that this issue is related to your SDK packages that are not installed on your computer. So now all you need is just installing required packages.

Fixing com.google.android.gms:play-services-base:8.4.0 for Cordova

Open the SDK Manager (it’s located in “ANDROID_HOME” folder).

This is the screenshot that I found while searching for a fix. It shows which packages you need to install in the SDK Manager:

cordova admob fix play-services-ads

I installed all except one – couldn’t find Android Support Repository in my SDK Manager. When I run my app I got another error message:

Could not find com.android.support:support-v4:23.0.0

After all, I experimented with packages and fixed this problem. This is my final list of SDK packages:

cordova com.android.support:support-v4:23.0.0

It works perfectly for me. But if you’re still facing this problem, please write me in the comments. May be I could help you.

Leave a Reply

Be the First to Comment!