For those who still have this problem on the Ionic framework. After 2 day's of trying, I succeeded to build my project.
npm i cordova-android-firebase-gradle-release
npm i cordova-android-support-gradle-release
- In package.json under plugins, you should have this:
"cordova-android-play-services-gradle-release": {
"PLAY_SERVICES_VERSION": "+"
},
"cordova-android-firebase-gradle-release": {
"FIREBASE_VERSION": "+"
}
- In config.xml, you should have these:
<plugin name="cordova-android-play-services-gradle-release" spec="^2.0.0">
<variable name="PLAY_SERVICES_VERSION" value="+" />
</plugin>
<plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0">
<variable name="FIREBASE_VERSION" value="+" />
</plugin>
That's it. Hope it helps :)