Firebase Analytics Could not get unknown property 'FIREBASE_VERSION'

Hi I have tried to install firebase analytics I get the following error:

Could not get unknown property 'FIREBASE_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.


cli packages: (/Users/michael/Documents/sites/laravel/hybrid/node_modules)

    @ionic/cli-utils  : 1.7.0
    ionic (Ionic CLI) : 3.7.0

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts              : 1.3.12
    @ionic/cli-plugin-cordova       : 1.4.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Cordova Platforms               : android 6.2.3 browser 4.1.0 ios 4.4.0
    Ionic Framework                 : ionic-angular 3.0.1

I have the same problem. Anyone found a solution please?

Hi,
try to remove the platform and then add it again and then build or run.
For example :

ionic cordova platform remove android
ionic cordova platform add android
ionic cordova run android

Worked for me.
E.G

It somehow create some different errors, and after solving all the errors, now it compiling successfully.
Thanks

Hi Rafraph, how did you fix this?
I’m still getting the error as in your question, even with “ionic cordova run android”.

Cheers, Jason

I worked on it a lot of time and did many things to try to fix it. It is hard to say what combination actually fix the issue. I can say that finally I deleted all node_modules install all list of package.json, after this I have some problems and after fixing each problem it somehow compiled. So sorry but I don’t have specific fix just try and try until you win :v: