Can't buld app with admob after sdk update


#1

After an update made on SDK manager, I can’t build my app.

ionic info

Cordova CLI: 6.3.0
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.3.2
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS
Node Version: v6.2.2

This is the error:

cordova build --release

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not find support-v4.aar (com.android.support:support-v4:24.0.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.aar

If I remove the admob plugin everything works fine.


#2

I solved it:

1- Install API 24 (SDK manager)
2- Update cordova (npm install -g cordova)
3- remove and add android platform.