Error when building project

Describe the bug (REQUIRED)
When I try to build my project error appears on the console and the game doesn’t start. With the previous version of the engine, the build process have no problems.

To Reproduce (REQUIRED)

  1. Click on Project/Build
  2. This error is shown

/firebase_analytics/src/firebase_analytics.cpp
Line 3: ‘luautils.h’ file not found
#include “luautils.h”
^~~~~~~~~~~~

Expected behaviour (REQUIRED)
The game should start

Defold version (REQUIRED):

  • Version

Screen Shot 2021-05-29 at 2.52.51 PM

Platforms (REQUIRED):

  • Platforms: macOS
  • OS: High Sierra

Screenshots (OPTIONAL):

Additional context (OPTIONAL):
I am using several extension in the project.

Screen Shot 2021-05-29 at 2.56.42 PM

Looks like you’re missing the main Firebase extension.

Thank you, the problem is solved.

You should not depend on the master branch for your extensions. It is always recommended to depend on a specific version to avoid breaking changes such as this one.

Versions to use for Firebase Analytics: Firebase Analytics - #16 by britzl

Now I am using the following versions

Screen Shot 2021-05-30 at 11.29.25 PM

Now the game doesn’t crash on start, but crashed when firebase functions are called.

This is the adb log:

The call i am using is this:

In my previous version, this code was working without problems…

Any help is welcome.

Greetings

You now also need to call firebase.analytics.init(). This could be the reason for the crash. Can you confirm this? I’ll create a fix so it doesn’t crash if you do not call init.

I forgot to call firebase.analytics.init(). Now the game is working again. Thanks for the help.

Greetings

We have released an update to the extension where we make sure analytics has been initialized before it used.

(Same fix applied to Firebase Remote Config as well)