arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1k stars 1.55k forks source link

GH-1057: Fixes issues cause by Firebase SDK updates on 5 April 2019 #1058

Closed dpa99c closed 4 years ago

dpa99c commented 5 years ago

Fixes issues cause by Firebase SDK updates on 5 April 2019 which removed deprecated API features causing Android build failures.

Resolves https://github.com/arnesson/cordova-plugin-firebase/issues/1057.

dpa99c commented 5 years ago

Until such time as this has been merged, you can install the fixed plugin directly off my fork:

cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue
MudasirBhutto commented 5 years ago

@dpa99c Unable to install the fixed plugin directly off your fork: getting issues

dpa99c commented 5 years ago

@dpa99c Unable to install the fixed plugin directly off your fork: getting issues

Github appears to be having some stability issues right now - this is what I'm getting when trying to access https://github.com/dpa99c/cordova-plugin-firebase/tree/GH-1057-April-05-android-build-issue - may be related: image

Bigalan09 commented 5 years ago

I'm getting an error:

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0.
2]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.android.gms:play-services-tagmanager-api:15.0.2 -> com.google.android.gms:play-services-m
easurement-base@[15.0.2], but play-services-measurement-base version was 15.0.4.
dpa99c commented 5 years ago

It's working fine for me in a test project (see console output below). If you're installing into an existing project you may need to remove/re-add the Android platform in order to rebuild the Gradle config:

cordova platform rm android --nosave && cordova platform add android --nosave
console output ``` $ cordova create firebase-test && cd firebase-test Creating a new cordova project. $ cordova platform add android@latest Using cordova-fetch for cordova-android@latest Adding android project... Creating Cordova project for the Android platform: Path: platforms\android Package: io.cordova.hellocordova Name: HelloCordova Activity: MainActivity Android target: android-28 Subproject Path: CordovaLib Subproject Path: app Android project created with cordova-android@8.0.0 Installing "cordova-plugin-whitelist" for android This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in. --save flag or autosave detected Saving android@latest into config.xml file ... $ cp ../google-services.json . $ cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue Installing "cordova-plugin-firebase" for android Subproject Path: CordovaLib Subproject Path: app Adding cordova-plugin-firebase to package.json Saved plugin info for "cordova-plugin-firebase" to config.xml $ cordova build android Preparing Firebase on Android Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\dpa99\AppData\Local\Android\sdk (recommended setting) ANDROID_HOME=C:\Users\dpa99\AppData\Local\Android\sdk (DEPRECATED) Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed Subproject Path: CordovaLib Subproject Path: app Starting a Gradle Daemon, 3 stopped Daemons could not be reused, use --status for details > Configure project :app WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) > Task :app:preBuild UP-TO-DATE > Task :CordovaLib:preBuild UP-TO-DATE > Task :CordovaLib:preDebugBuild UP-TO-DATE > Task :CordovaLib:checkDebugManifest > Task :CordovaLib:processDebugManifest > Task :app:preDebugBuild > Task :CordovaLib:compileDebugAidl NO-SOURCE > Task :app:compileDebugAidl NO-SOURCE > Task :CordovaLib:packageDebugRenderscript NO-SOURCE > Task :app:compileDebugRenderscript > Task :app:checkDebugManifest > Task :app:generateDebugBuildConfig > Task :app:prepareLintJar > Task :app:generateDebugSources > Task :CordovaLib:compileDebugRenderscript > Task :CordovaLib:generateDebugBuildConfig > Task :CordovaLib:generateDebugResValues > Task :CordovaLib:generateDebugResources > Task :CordovaLib:packageDebugResources > Task :CordovaLib:generateDebugRFile > Task :CordovaLib:prepareLintJar > Task :CordovaLib:generateDebugSources > Task :CordovaLib:javaPreCompileDebug Note: D:\Temp\firebase-test\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :CordovaLib:compileDebugJavaWithJavac > Task :CordovaLib:processDebugJavaRes NO-SOURCE > Task :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug > Task :app:javaPreCompileDebug > Task :app:mainApkListPersistenceDebug > Task :app:mergeDebugShaders > Task :app:compileDebugShaders > Task :app:generateDebugAssets > Task :CordovaLib:mergeDebugShaders > Task :CordovaLib:compileDebugShaders > Task :CordovaLib:generateDebugAssets > Task :CordovaLib:packageDebugAssets > Task :app:mergeDebugAssets > Task :app:writeDebugApplicationId > Task :app:processDebugGoogleServices Parsing json file: D:\Temp\firebase-test\platforms\android\app\google-services.json > Task :app:createDebugCompatibleScreenManifests > Task :app:processDebugManifest D:\Temp\firebase-test\platforms\android\app\src\main\AndroidManifest.xml:24:9-31:50 Warning: activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present > Task :app:fabricGenerateResourcesDebug > Task :app:generateDebugResValues > Task :app:generateDebugResources > Task :app:mergeDebugResources > Task :app:processDebugResources Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :app:compileDebugJavaWithJavac > Task :app:compileDebugNdk NO-SOURCE > Task :app:compileDebugSources > Task :app:validateSigningDebug > Task :app:signingConfigWriterDebug > Task :app:transformClassesWithDexBuilderForDebug > Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug > Task :app:transformDexArchiveWithDexMergerForDebug > Task :app:mergeDebugJniLibFolders > Task :CordovaLib:compileDebugNdk NO-SOURCE > Task :CordovaLib:mergeDebugJniLibFolders > Task :CordovaLib:transformNativeLibsWithMergeJniLibsForDebug > Task :CordovaLib:transformNativeLibsWithStripDebugSymbolForDebug > Task :CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug > Task :app:transformNativeLibsWithMergeJniLibsForDebug > Task :app:transformNativeLibsWithStripDebugSymbolForDebug > Task :app:processDebugJavaRes NO-SOURCE > Task :app:transformResourcesWithMergeJavaResForDebug > Task :app:packageDebug > Task :app:assembleDebug > Task :app:cdvBuildDebug BUILD SUCCESSFUL in 24s 47 actionable tasks: 47 executed Built the following apk(s): D:\Temp\firebase-test\platforms\android\app\build\outputs\apk\debug\app-debug.apk ```
Bigalan09 commented 5 years ago

cordova platform rm android --nosave && cordova plugin add android --nosave

Works! Thank a lot.

jboffo commented 5 years ago

Until such time as this has been merged, you can install the fixed plugin directly off my fork:

cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

Works, Thanks!

posti85 commented 5 years ago

Thank you for this fork. It's merge in the original project is urgent.

nickdunn commented 5 years ago

Yes please! Our builds are failing as a result.

ruisalgado commented 5 years ago

played with this for a bit and seems to work like a gem 👍

rhanesoghlyan commented 5 years ago

Yes, please merge this changes ASAP.

IvanLencina commented 5 years ago

Working here. Merge that, please.

whoistobias commented 5 years ago

Wow, like magic, thanks!

hcassar93 commented 5 years ago

Works great. Thanks heaps. Merge Merge Merge.

kapilSoni101 commented 5 years ago

@dpa99c sir got this error after install above command:

Error: Failed to fetch plugin https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue via registry.

rhanesoghlyan commented 5 years ago

Until such time as this has been merged, you can install the fixed plugin directly off my fork:

cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

I have installed plugin with command: cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

But I have build issue. Can you please check ?

:preDebugBuild FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 3m 7s at ChildProcess.whenDone (/Users/test/Documents/projects/ionic/test-project/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) (node:13453) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:13453) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ingoingoingo commented 5 years ago

I have installed plugin with command: cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

But I have build issue. Can you please check ?

I have the same trouble. The same error can be found in the failed travis build https://travis-ci.org/arnesson/cordova-plugin-firebase/jobs/529225437

rhanesoghlyan commented 5 years ago

I have installed plugin with command: cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue But I have build issue. Can you please check ?

I have the same trouble. The same error can be found in the failed travis build https://travis-ci.org/arnesson/cordova-plugin-firebase/jobs/529225437

I think it's related with cordova-android version .

I'm using cordova-android "6.4.0" version

ingoingoingo commented 5 years ago

@rhanesoghlyan Yes, seems so. I also run "6.4.0" and just tried it with "7.1.1" but this also failed. Based on the travis tests it seems to only work with "8.0.0."

image

rhanesoghlyan commented 5 years ago

@dpa99c what do you think about this ?

Does this changes will work only for cordova-android 8.0.0 version ?

yoojene commented 5 years ago

This workaround works for me on cordova-android 6.4.0

https://github.com/arnesson/cordova-plugin-firebase/issues/1057#issuecomment-490418993

dpa99c commented 5 years ago

Regarding cordova-android@6.4.0, I think it's worth bearing in mind that the APKs it produces will soon be inadmissible to the Play Store and therefore you should migrate to cordova-android@8.x as soon as possible:


https://developer.android.com/distribute/best-practices/develop/target-sdk:

Starting August 1, 2019, Google Play requires that new apps target at least Android 9.0 (API level 28), and that app updates target Android 9.0 from November 1, 2019.

rhanesoghlyan commented 5 years ago

Regarding cordova-android@6.4.0, I think it's worth bearing in mind that the APKs it produces will soon be inadmissible to the Play Store and therefore you should migrate to cordova-android@8.x as soon as possible:

Thanks for provided information

kapilSoni101 commented 5 years ago

@dpa99c : I got another error after install this plugin

Uninstalling cordova-plugin-firebase from android Error during processing of action! Attempting to revert... Uh oh! AndroidStudio.js:inAndroidStudioProject root does not exist: /Users/kapil/Desktop/project/AMS/platforms/android [ERROR] An error occurred while running subprocess cordova.

I am not understand why got above error this plugin is present in our plugin list,... com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS" cordova-plugin-actionsheet 2.3.3 "ActionSheet" cordova-plugin-advanced-http 2.0.2 "Advanced HTTP plugin" cordova-plugin-android-permissions 1.0.0 "Permissions" cordova-plugin-background-mode 0.7.2 "BackgroundMode" cordova-plugin-camera 4.0.3 "Camera" cordova-plugin-datepicker 0.9.3 "DatePicker" cordova-plugin-device 2.0.2 "Device" cordova-plugin-document-viewer 0.9.10 "SitewaertsDocumentViewer" cordova-plugin-file 6.0.1 "File" cordova-plugin-file-transfer 1.7.1 "File Transfer" cordova-plugin-filepath 1.5.1 "cordova-plugin-filepath" cordova-plugin-firebase 2.0.5 "Google Firebase Plugin" cordova-plugin-geolocation 4.0.1 "Geolocation" cordova-plugin-googlemaps 2.4.4 "cordova-plugin-googlemaps" cordova-plugin-inappbrowser 3.0.0 "InAppBrowser" cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview" cordova-plugin-mauron85-background-geolocation 3.0.1 "CDVBackgroundGeolocation" cordova-plugin-network-information 2.0.1 "Network Information" cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy" cordova-plugin-splashscreen 4.0.3 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-telerik-imagepicker 2.2.2 "ImagePicker" cordova-plugin-uniquedeviceid 1.3.2 "UniqueDeviceID" cordova-plugin-whitelist 1.3.1 "Whitelist" cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin" cordova.plugins.diagnostic 4.0.11 "Diagnostic" org.apache.cordova.geolocation 0.3.6 "Geolocation" i tried with with --nofetch not working.

rhanesoghlyan commented 5 years ago

Hey guys. If you are using version of cordova-android less then 8.0.0 you can use my forked repository ionic cordova plugin add https://github.com/rhanesoghlyan/cordova-plugin-firebase.git#master --save

No need to change anything in platforms/ directory. It's generated directory after adding the platform.

baluworks commented 5 years ago

@dpa99c :Please help. both provided git links were not able to install

https://github.com/rhanesoghlyan/cordova-plugin-firebase https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

rhanesoghlyan commented 5 years ago

@baluworks please do the following

ionic cordova plugin rm cordova-plugin-firebase rm -rf platforms/ ionic cordova plugin add https://github.com/rhanesoghlyan/cordova-plugin-firebase.git#master --save ionic cordova platform add android ionic cordova build android

eppineda commented 5 years ago

@rhanesoghlyan Thanks so much for forking a solution compatible with cordova-android 6.4.0 (as is my case). I did get past the original error that many people are reporting but, now, I have something different:

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_111681jxraufgcz3cg5gruysh.run(/home/enriquepineda/fishint_v3/platforms/android/build.gradle:148)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
:preBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:preDebugBuild FAILED
3 actionable tasks: 1 executed, 2 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Can you advise? Something about the preDebugBuild failing... (no additional info from --stacktrace)

kapilSoni101 commented 5 years ago

@rhanesoghlyan sir i got antother error after remove fireabase plugin:


 Uninstalling cordova-plugin-firebase from android
> Error during processing of action! Attempting to revert...
> Uh oh!
> AndroidStudio.js:inAndroidStudioProject root does not exist: /Users/kapil/Desktop/project/AMS/platforms/android
> [ERROR] An error occurred while running subprocess cordova.
>         
>         cordova plugin remove cordova-plugin-firebase --save exited with exit code 1.

Please tell me why generate above error?

rhanesoghlyan commented 5 years ago

@kapilSoni101 and @eppineda please do the following: rm -rf node_modules && rm -rf platforms && rm -rf plugins

And after that: ionic cordova plugin add https://github.com/rhanesoghlyan/cordova-plugin-firebase.git#master --save npm install ionic cordova platform add android ionic cordova build android

kapilSoni101 commented 5 years ago

@rhanesoghlyan sir i got another error

rm: -: No such file or directory rm: rf: No such file or directory rm: platforms: is a directory

rhanesoghlyan commented 5 years ago

@kapilSoni101 You can instead of this command manually remove platforms, plugins and node_modules directories.

And after that add plugin and continue process

kapilSoni101 commented 5 years ago

@rhanesoghlyan ok sir i will try and let you know

kapilSoni101 commented 5 years ago

@rhanesoghlyan: sir i have customize the project.properties according to the firebase docs and finally i got another new error

e/FirebasePluginMessagingService.java:75: error: cannot access zzbfm

daniele-rescigno commented 5 years ago

Until such time as this has been merged, you can install the fixed plugin directly off my fork:

cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

Works fine for me while building new cordova project. Thanks!

lucastyska commented 5 years ago

Any solution to this problem? I have tested almost all of it and I did not succeed in any solution. Here is the information from my project erro

kapilSoni101 commented 5 years ago

@rhanesoghylan :ok sir i will contact thanks a lot sir..

GinMitch commented 5 years ago

Forgot to mention with approval:

IMPORTANT

In order to get your project compile successfully an upgrade to cordova-android@8.0.0 or higher might be required.

As @dpa99c mention earlier:

... the APKs cordova-android@6.4.0 produces will soon be inadmissible to the Play Store and therefore you should migrate to cordova-android@8.x as soon as possible

Full comment

JerryBels commented 5 years ago

Can we expect this to be merged in the coming days? I would like to avoid setting up the fork to get back to the main project before having to actually release something :)

hussain-github commented 5 years ago

Hello Guys, I am having the same error. I created new cordova project for testing. Then I did the following: 1) cordova plugin add C:..\cordova-plugin-firebase-master (I added the plugin locally since I am not able to add it from url) 2) cordova platform add android@8.0.0 3) cordova build android

However, I get the same error: **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 [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.**

Any suggestions please.

ThonyBG commented 5 years ago

Hi guys, thanks for this fix!

I want to comment an error that i'm getting with this versión:

hiepxanh commented 5 years ago

can we merge this?

hiepxanh commented 5 years ago

@dpa99c , can you make some change to allow this update can merge sir?

dpa99c commented 5 years ago

@ThonyBG The above commits resolve the issue of the obsolete <service> entry. Should be good to merge now.

dpa99c commented 5 years ago

BTW would be great if #972 was merged too then I wouldn't need to maintain a parallel branch which uses Cocoapods to install Firebase SDK on iOS (rather than bundling it inside the plugin).

ThonyFD commented 5 years ago

@dpa99c great job!

For someone with problems with this changes:

I set this versions in my build-extras, I'm not sure why, but it solved my build and run problems

configurations.all { resolutionStrategy { force "com.google.firebase:firebase-core:16.0.9" force "com.google.firebase:firebase-iid:18.0.0" force "com.google.android.gms:play-services-measurement-api:16.5.0" force "com.google.firebase:firebase-perf:17.0.0" force "com.google.firebase:firebase-config:17.0.0" force "com.google.firebase:firebase-messaging:18.0.0" force "com.google.android.gms:play-services-tagmanager:16.0.8" } }

This is my ionic info:

Ionic:

ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.5 @ionic/app-scripts : 3.1.8

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 8.0.0 Cordova Plugins : cordova-plugin-ionic-webview 4.0.1, (and 28 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/user/Library/Android/sdk) ios-deploy : 2.0.0 ios-sim : 8.0.1 NodeJS : v10.8.0 (/usr/local/Cellar/node/10.8.0/bin/node) npm : 4.1.2 OS : macOS Xcode : Xcode 10.2.1 Build version 10E1001

ThonyFD commented 5 years ago

btw @ThonyBG it's me too 👀

harshkhandelwalcs commented 5 years ago

@dpa99c

1) I've deleted everything ( platform, plugins & package-lock.json, node_modules ). rm -rf package-lock.json platforms/ plugins/ node_modules/

2) I've deleted cordova-plugin-firebase from both, your package.json & config.xml

3) add the forked plugin cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

4) add a fresh platform & install the needed modules cordova platforms add android && npm install

But I got error image

dpa99c commented 5 years ago

@harshkhandelwalcs There is no detail of the cause of the error in your screenshot. Re-run the command with the --verbose option as suggested.

ThonyFD commented 5 years ago

@harshkhandelwalcs run ./platforms/android/gradlew build --stacktrace to see what happen