Firebase error

#1

Steps to reproduce the problem:

  1. Add the Firebase extension to the game (https://github.com/defold/extension-firebase-analytics)
  2. Go to Project/Bundle/Android Aplication…
  3. Click on Create Bundle…
  4. Test the app on a device
  5. The application does not start, a crash report appears on the log.

Expected behavior: The game should start, and should be able to receive firebase events.

Defold version: version 1.2.164, editor sha1 39b2b2d4bd91ffd166a5776bd998912a0ec9758c, engine sha1: 2be2687cbb670c2dbe9cf2e99577bc3338561778

Platforms: Android

Additional context:

  1. I have other extensions in my project (admob,defblend)

31%20PM

  1. In the instructions of firebase extension there are 4 files to add to the project.

A) https://github.com/defold/android-base-extensions/releases/download/1.0.0/firebase-core-16.0.8.zip
B) https://github.com/defold/android-base-extensions/releases/download/1.0.0/gps-base-16.1.0.zip
C) https://github.com/defold/android-base-extensions/releases/download/1.0.0/support-v4-26.1.0.zip
D) https://github.com/defold/android-base-extensions/releases/download/1.0.0/gps-measurement-16.4.0.zip

Some files I already have in my project (B,C). A and B files generate conflicts when added to the project., an .apk file cannot be generated if they are added to the project.

  1. The init method is called according to the log ( “Firebase_init” and “Creating App” messages). This is the call to firebase in the main file.

25%20PM

0 Likes

#2

Does it still crash if you remove the AdMob extension?

0 Likes

#3

Maybe is the same issue?

0 Likes

#4

Yeah, I removed the extension and got the same crash.

43%20PM

0 Likes

#5

Yes, I think is the same issue…

0 Likes

#6

We’re working on a new way to specify (gradle) dependencies for an extension (e.g. for firebase).
This will help maintain and write extensions, and to make sure the resolved dependencies work together.
The goal is to ship this in 1.2.165.

3 Likes

Admob and Firebase Analytics extensions
#7

Ok!, I’ll try when the next version is ready.

Thanks

0 Likes