Question by
jokajoka4 · Nov 25, 2017 at 01:35 PM ·
errordontdestroyonload
DontDestroyOnLoad Error with Firebase Analytics
Hi. I am trying to export a build to Android, but I get the following error:
Error building Player: InvalidOperationException: The following game object is invoking the DontDestroyOnLoad method: Firebase Services. Notice that DontDestroyOnLoad can only be used in play mode and, as such, cannot be part of an editor script.
I am using Firebase Analytics. I have tried cleaning the project of anything related to Firebase and reimported the newest version, but with no luck. Any ideas?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612143324im_/https://answers.unity.com/themes/thub/images/avi.jpg)