I have more information about this bug.
Describe the bug:
When a user play the game for the first time after install the game from Google Play, the game crashes. If the user open the game for the second time, the game works without problem.
To Reproduce:
- Uninstall the current version of the game from the test device.
- Install the game using the Google Play (the game is in alpha state, is still not public).
- Start the game clicking in the game icon.
- The game crashes, the android crash report window appears.
Expected behavior: The game should start smoothly.
Defold version:
Extensions:
Platforms: Android
Logs: Using adb logcat, the following message appears:
09-15 21:20:33.531 28913 28947 E defold.sound: App is missing the READ_PHONE_STATE permission. Audio will continue while phone call is active.
09-15 21:20:34.911 28913 28913 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate receiver com.defold.adtruth.InstallReceiver: java.lang.ClassNotFoundException: Didn’t find class “com.defold.adtruth.InstallReceiver” on path: DexPathList[[zip file “/data/app/com.heizhu.brokenskulls-1/base.apk”],nativeLibraryDirectories=[/data/app/com.heizhu.brokenskulls-1/lib/arm64, /data/app/com.heizhu.brokenskulls-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
09-15 21:20:34.911 28913 28913 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.defold.adtruth.InstallReceiver” on path: DexPathList[[zip file “/data/app/com.heizhu.brokenskulls-1/base.apk”],nativeLibraryDirectories=[/data/app/com.heizhu.brokenskulls-1/lib/arm64, /data/app/com.heizhu.brokenskulls-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
09-15 21:20:34.911 28913 28913 E AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: com.defold.adtruth.InstallReceiver
I can reproduce the bug now, so if you need more info just ask me.