- 8
Failed to create build for android in ionic 4, error in firebase
- 8
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.4,15.0.4]], but resolves to 15.0.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.failed to capture fingerprint of input files for task ‘:app:predebugbuild’ property ‘compilemanifests’ during up-to-date check. > the library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.2.0,17.2.0]], but resolves to 17.2.0. disable the plugin and check your dependencies tree using ./gradlew :app:dependencies in ionic
- Report
Anupam Shukla
Fix: Firebase Error while creating build ionic android
1. Remove existing platform
rm -Rf platforms /android
OR
cordova platforms remove android(Worked for me)2 . Remove plugins – Which ever you are using:
a .
cordova plugin rm cordova-plugin-firebaseb . OR
cordova- plugin- rm cordova-plugin-firebase-lib3 . Add new forked plugin :
cordova plugin add cordova-plugin-firebasex(dave allens fork)As far as I know,
cordova-plugin-firebase-lib
not been fixed yet.
4. If you need to, add AndroidX support:
cordova plugin add cordova-plugin-androidxcordova plugin add cordova -plugin-androidx-adapter
5. Add platform back:
cordova platform addandroid cordova build android