I’m making an android extension for firebase and found two problems that I don’t know how to solve.
I need to edit the build.gradle for the project, not the one for the app.
Project-level build.gradle (
// Add this line
I need to add the google services json at the app level. The problems I get is that it says that the google services json is not compatible with the package of the extension because it has the package for my app.
Finally, I’m editing the android template to do it but It will be better to have an extension.
I still have these question but I’ll add more because I’m still trying to make the firebase extension.
I found that the extension I need to use: Firebase UI needs an upgraded version of gradle to be able to compile. I updated gradle using:
<config:android gradle-version="5.1.1" />
<config:android gradle-plugin="3.4.2" />
But it is giving me the following problems:
groovy.swing.SwingBuilder is not compatible with newer gradle.
If I take out everything from groovy.swing.SwingBuilder of the build.gradle file it gives me the following error:
> Configure project :deps:extension-api
Evaluating project ':deps:extension-api' using build file 'D:\Trabajos\Tembac\BreedABicho\BreedABichoEosGit\HaxeBreed\export\debug\android\bin\deps\extension-api\build.gradle'.
Resource missing. [HTTP HEAD: http://repo.jfrog.org/artifactory/libs-release-bintray/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.pom?referrer]
Resource missing. [HTTP HEAD: http://repo.jfrog.org/artifactory/libs-release-bintray/com/android/tools/build/gradle/3.4.2/gradle-3.4.2.jar?referrer]
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':deps:extension-api'.
> Could not resolve all artifacts for configuration ':deps:extension-api:classpath'.
> Could not find com.android.tools.build:gradle:3.4.2.
Searched in the following locations:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Build halted with errors.
For the first question, you need to have a different package name for the fire base extension.