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.
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.
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.
We have together with some of our users identified a problem with how we bring the Gradle and extension resources (like the google-services.xml) together into the final APK. We may have a workaround that @AJirenius will be testing and we will deploy a fix to the build server on Monday and then a fix in bob.jar this week which will be available as an alpha. We’ll update you when we know more. Sorry for the inconvenience!
i tested again with 1.2.166 version of the editor, and the results are the same.
03-03 13:45:32.312 9411 10366 I defold : INFO:Firebase: Firebase_Init
03-03 13:45:32.312 9411 10366 I defold : INFO:Firebase: Creating app
03-03 13:45:32.340 9411 10366 I defold : INFO:CRASH: Successfully wrote Crashdump to file: /data/user/0/com.heizhu.brokenskulls/files/_crash
03-03 13:45:32.340 9411 10366 E defold : ERROR:CRASH: CALL STACK:
03-03 13:45:32.340 9411 10366 E defold :
03-03 13:45:32.340 9411 10366 E defold : # 0 pc 0x638 [vdso] +0
03-03 13:45:32.340 9411 10366 E defold : # 1 pc 0x21efc /system/lib64/libc.so abort+112
Is there another way to use Google Analytics and Admob at the same time? This is the last thing I have to put in my game for its launch, but I don’t think there’s a solution in the short term. I’ve been waiting for this fix since December.
Maybe it’s a better idea to try to mix the two extensions by myself?
I added extension-admob and extension-firebase-analytics to an empty project. I added a single script:
local function listener(event)
if event.phase == 'init' then
print("init done")
end
end
function init(self)
print("init")
admob.init({
test = true,
listener = listener
})
firebase.init()
end