Two questions about making firebase extension for android

Hi everyone,

I’m making an android extension for firebase and found two problems that I don’t know how to solve.

Problem 1:

I need to edit the build.gradle for the project, not the one for the app.

Project-level build.gradle ( <project>/build.gradle ):

buildscript {
dependencies {
// Add this line
classpath ‘’

Problem 2:

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:]
Resource missing. [HTTP HEAD:]

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
     Searched in the following locations:
     Required by:
         project :deps:extension-api

* Try:
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

Build halted with errors.

For the first question, you need to have a different package name for the fire base extension.