@agm/corelibrary. Although, at the time of writing of this troubleshooting step, the error is identified and fixed, but it is not published to npm.
@agm/core, this issue will be fixed automatically. So try and install if there is a newer version available than
src/app/pages/layout/uber-map-flow, comment out the
build.gradlefile that looks like this
play-services-identitydo not have a common version, which can cause troubles in APK builds. Changes the versions of the libraries to a common version, and preferably to latest version.
config.xmlalone is not sufficient. You might have to change the dependency of all plugins which are using Google services to use the latest version. To do this,
pluginsfolder of the app, and change all versions to a common latest one (in our case 16.0.0)
build.gradleshould look like this
platforms/android/project.propertieshas the same versions
multidexenabled = truein
build.gradlecan fix the problem
support-v4:27+might look compatible, but they can resolve to different versions. You can check better if you open the gradle files in Android Studio. It will give you warnings related to different versions. To resolve this, look for
ANDROID_SUPPORT_V4_VERSIONin your plugins,
package.jsonand change that to a common, definite version like
27.0.1After changing these versions, remove the platform and re-build.
build.gradleto fix the issues
cordova-*-gradleplugins if you have them installed (cordova-android-support-gradle-release).
config.xmlcontains the path to app's icon, while sometimes in the source code, the icons can be missing. To fix this, generate all icons and splash screens using command