question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not get unknown property 'FIREBASE_VERSION' for object of type

See original GitHub issue
* What went wrong:
A problem occurred evaluating root project 'android'.
> 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

`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
stoconnorcommented, Feb 9, 2018

Edit your project.properties file and explicitly add the version.

From: cordova.system.library.7=com.google.firebase:firebase-dynamic-links:$FIREBASE_VERSION To: cordova.system.library.7=com.google.firebase:firebase-dynamic-links:11.0.+

Also best to ensure that you update your firebase core/messaging and play-services to the same version:

cordova.system.library.3=com.google.firebase:firebase-core:11.0.+
cordova.system.library.4=com.google.firebase:firebase-messaging:11.0.+
cordova.system.library.5=com.google.android.gms:play-services-auth:11.0.+
cordova.system.library.6=com.google.android.gms:play-services-identity:11.0.+

After making these changes I ran into another error: Cannot add task ':processArmv7DebugGoogleServices' as a task with that name already exists.

This means there is a duplicate task to do the same thing… To fix this, simply comment out the task in the plugin file of /platforms/android/cordova-support-google-services/APPNAME-build.gradle

//ext.postBuildExtras = {
//    apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
//}
1reaction
roykencommented, Jan 23, 2018

As @Darkarmour said, I downgraded to version 0.12.0

cordova plugin rm cordova-plugin-firebase-analytics --save
cordova plugin add cordova-plugin-firebase-analytics@0.12.0 --save
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not get unknown property 'assemble' - Stack Overflow
ERROR : Could not get unknown property 'assemble' for task ':patternjkh:assembleDebug' of type org.gradle.api.DefaultTask. I googled for a long ...
Read more >
Firebase Analytics Could not get unknown property ...
Hi I have tried to install firebase analytics I get the following error: Could not get unknown property 'FIREBASE_VERSION' for object of type...
Read more >
Fix Error: Could Not Get Unknown Property '*_version' | Android
Could Not Get Unknown Property '*_version' | AndroidPut ext.kotlin_version = '1.3.50'In build grade + clean your project and run.
Read more >
could not get unknown property 'ossrhUsername' for object of ...
could not get unknown property 'ossrhUsername' for object of type org.gradle.api.publication.maven.internal.deployer.
Read more >
Could not get unknown property 'kotlin_version' for ... - YouTube
Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found