Closed ccorcos closed 6 years ago
make sure you include the heyzap-cordova-admob
plugin as well as the base plugin, it is required.
if you have many third party networks you may also need to enable multidex using gradle.. you can use a plugin such as this one: https://www.npmjs.com/package/cordova-plugin-enable-multidex
Hey @ezpuzz, I added multidex and it appears to build with it, but it didn't solve that build error. I have a pretty simple list of dependencies here (including admob). Not sure what to try (I'm not that familiar with Java / Android).
<engine name="ios" spec="^4.5.4" />
<engine name="android" spec="^6.4.0" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-wkwebview-engine" spec="^1.1.4" />
<plugin name="heyzap-cordova-admob" spec="https://github.com/Heyzap/heyzap-cordova-admob.git" />
<plugin name="heyzap-cordova" spec="https://github.com/Heyzap/heyzap-cordova.git" />
<plugin name="heyzap-cordova-applovin" spec="https://github.com/Heyzap/heyzap-cordova-applovin.git" />
<plugin name="heyzap-cordova-facebook_audience_network" spec="https://github.com/Heyzap/heyzap-cordova-facebook_audience_network.git" />
<plugin name="cordova-plugin-inapppurchase" spec="^1.1.0" />
<plugin name="cordova-plugin-apprate" spec="^1.3.0" />
<plugin name="cordova-plugin-taptic-engine" spec="^2.1.0" />
<plugin name="cordova-plugin-vibration" spec="^3.0.1" />
<plugin name="cordova-plugin-device" spec="^2.0.1" />
<plugin name="cordova-plugin-camera" spec="^4.0.2" />
<plugin name="cordova-plugin-enable-multidex" spec="~0.1.3" />
make sure your local android sdk installation is up to date, use the android sdk manager to update to the latest stable version of the google repository. this error occurs when the google-play-services-ads library is out of date.
hey @ezpuzz thanks for the help. sdkmanager --upgrade
did the trick for me :)
I upgraded my android libs to the latest in Android studio and got rid of the Crosswalk plugin I was using and now I'm hitting this error: