I have the error bilow in build.gradle at this line:
apply plugin: 'com.google.gms.google-services'
Error:(56, 0) Could not get unknown property 'LibraryVariants' for object of type com.android.build.gradle.LibraryExtension.
It's happend after i installed Firebase.
Any idea on how to solve this?
Thank you!
I had the same problem and solved it updating gradle and google-services versions.
The error message, Error: Could not get unknown property 'LibraryVariants' for object of type com.android.build.gradle.LibraryExtension, indicates that this plugin needs to be applied to a module which uses the
com.android.application
plugin.So, the simple solution is to only include the google-services plugin in your application module and not your library module:
Add the following to the @project level gradle file:
Add the following to the @app level gradle file:
Apply plugin