Open mukeshsolanki opened 4 years ago
any update for this one ?
Any update???
Still not working ...
I faced the same issue with the PhoneGap project.
Here are the steps that I followed and it worked for me:
Remove android platform from the project
phonegap platform remove android
Re-install the platform (currently it is )
phonegap platform add android
Install the plugin as they specified in the doc: https://github.com/ReallySmallSoftware/cordova-plugin-firebase-crashlytics
Update the confix.xml android-minSdkVersion version to 195. Update the project global build.gradle
dependencies with
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.0'
Add allprojects>repositories
if not added under project global build.gradle
google()
Check and update if the version of the installed dependencies in the "project.properties"
filecordova.system.library.1=com.google.firebase:firebase-messaging:11.+
cordova.system.library.2=com.google.firebase:firebase-core:11.+
cordova.system.library.3=com.google.firebase:firebase-analytics:11.+
Update the Gradle wrapper version if needed from (if the build gives you error due to wrapper unavailability/not compatible):
\platforms\android\cordova\lib\builders\ProjectBuilder.js
var distributional = .......
from gradle-4.10.3-all.zip to gradle-<SUGGESTED_VERSION_BY_THE_SYSTEM>-all.zip
I used classpath of the buildscript with
classpath 'com.android.tools.build:gradle:3.3.0'
After making the required changes on the project build the project and run on a real device. Then check the "FirebaseCrashlytics" instance and initialize it. Once done log some errors and force crash the app. And then restart the app. Now you will see the crash list in the Firebase console.
During this, you have to register your app in the firebase console and you have to add the google-services.json
file in your app.
If you are using FCM for a push notification (https://github.com/phonegap/phonegap-plugin-push) then remove the plugin and reinstall the same.
Now my project contains:
λ phonegap platform list
Installed platforms:
android 8.1.0
ios 5.1.1
λ phonegap plugin list
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-firebase-crashlytics 1.0.0 "Cordova Firebase Crashlytics Plugin"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-support-google-services 1.3.2 "cordova-support-google-services"
phonegap-plugin-multidex 1.0.0 "Multidex"
phonegap-plugin-push 2.3.0 "PushPlugin"
Thank you
Same problem with capacitor, tried SubhajitSarkar's suggestion but I didn't make it
Facing same problem with capacitor ....any update??
any update please?
I have released a new version with updated dependencies, removing the original Fabric dependencies. Please try again and see how it goes.
Any idea why i keep getting this exception in my android app. All I'm doing is just adding the module
Caused by: com.android.build.gradle.internal.crash.ExternalApiUsageException: groovy.lang.MissingPropertyException: Could not get unknown property 'assemble' for task ':capacitor-cordova-android-plugins:assembleDebug' of type org.gradle.api.Task.