Hello,
I am trying to implement this solution but I am having some trouble.
What gradle version are you using? What version of Android Studio?
I’ve implemented all the steps indicated above, in addition to replacing the cordova firebase plugin with this:
ionic cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue
I am getting this error in Android Studio:
Error:(40, 0) Minimum supported Gradle version is 4.10.1. Current version is 4.1.
Please fix the project's Gradle settings.
<a href="fixGradleVersionInWrapper">Fix Gradle wrapper and re-import project</a><br><a href="openGradleSettings">Gradle settings</a>
In /platforms/android/gradle/gradle.wrapper.properties I have:
#Wed Jun 19 13:26:40 BST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
UPDATE:
Manage to solve the issues with mzepeda’s answer below.