Hello, everybody,
I am working on an already quite complex project, where I am deploying to Android and iOS. I am offering a Demo version of the game for Google Instant Play. This version should be as lightweight as possible, because Google’s max size for these kind of apps is around 15 MB.
I am using Firebase Analytics, and not Unity Analytics.
Now, for my Demo version, I am completely excluding Firebase (doing so with an Editor script). So far so good, until I build and test the game on Android. It crashes right after the splashscreen fades away.
After debugging it with Logcat, I find these lines:
2020-04-08 19:54:43.369 8775-8803/com.company.name E/Unity: Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionInfo
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 126)
2020-04-08 19:54:43.370 8775-8803/com.company.name E/Unity: Unable to find method CallIdentityTokenChanged in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionInfo
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 143)
2020-04-08 19:54:43.371 8775-8803/com.company.name E/Unity: Unable to find method CallSessionStateChanged in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionInfo
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 143)
2020-04-08 19:54:43.371 8775-8803/com.company.name E/Unity: Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.AnalyticsSessionState
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 126)
2020-04-08 19:54:43.372 8775-8803/com.company.name E/Unity: Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.Analytics.ContinuousEvent
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 126)
2020-04-08 19:54:43.373 8775-8803/com.company.name E/Unity: Unable to find method RemoteConfigSettingsUpdated in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteConfigSettings
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 143)
2020-04-08 19:54:43.374 8775-8803/com.company.name E/Unity: Unable to find type [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteConfigSettingsHelper/Tag
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 126)
2020-04-08 19:54:43.374 8775-8803/com.company.name E/Unity: Unable to find method RemoteSettingsBeforeFetchFromServer in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteSettings
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 143)
2020-04-08 19:54:43.375 8775-8803/com.company.name E/Unity: Unable to find method RemoteSettingsUpdateCompleted in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteSettings
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 143)
2020-04-08 19:54:43.376 8775-8803/com.company.name E/Unity: Unable to find method RemoteSettingsUpdated in [UnityEngine.UnityAnalyticsModule.dll]UnityEngine.RemoteSettings
(Filename: ./Runtime/Scripting/CommonScriptingClasses.cpp Line: 143)
Seeing Unity Analytics all over the place really confused me, because I am not using this package (I have even disabled it from the Package Manager). So, next step was testing another build with Unity Analytics enabled. IT WORKED.
For some reason, this bug appeared after I removed Firebase, and not before. Might Firebase use Unity Analytics?
Also important to mention, this problem doesn’t happen if I don’t enable Strip Engine Code. However, I aim to have this enabled.
I am wondering if this might be a bug from Unity. Could someone assist me?
I am including as an attachment, the complete crash log from Android Studio’s Logcat.
Some more info:
- Unity 2019.3.3f1
- IL2CPP
- Firebase modules: Analytics, Crashlytics & Functions (6.13.0)
5688658–593809–unity-analytics-bug.txt (18.8 KB)