Open sashastg opened 6 years ago
Same issue
Hi, I am getting same issue. Can anybody help me to fix this.
Finally I resolved this issue. Root cause Current version of this plugin needs cordova-admob-sdk as a dependency. But cordova-admob-sdk needs Cordova Android 6.3.0 which is available in Cordova 7.1.0 or latter. If your Cordova version is earlier to this version then cordova-admob-sdk dependency install will be skipped while installing cordova-plugin-admob-free. Now if you try to build the project the above issue will appear.
Resolution Remove android platform and cordova-plugin-admob-free plugin. Then update cordova to 7.1.0 and add the platform and plugin again. This will resolve the issue.
Note If you are running older command line Android SDK (25.x.x) like me, you will face issue "gradle not found" while running "cordova run android". To fix this issue install gradle in your system (even if it exists in you Android SDK folder).
Thanks, @kundurahulkundu
i had created new cordova project. then "cordova plugin add cordova-plugin-admob-free --save"
and i got errors, thats missed libs. package com.google.android.gms.ads does not exist. screenshot attached.