Simple 2d mobile game. In editor or using Unity Remote it works fine, no errors. When build APK and installed it on my Samsung Galaxy Tab A 2016 (Android 5.1), it crashes right after the Unity logo fades out.
Logcat:
01-23 13:58:12.097 19260-19275/? E/AndroidRuntime: FATAL EXCEPTION: UnityMain Process: com.DefaultCompany.Faller, PID: 19260
java.lang.Error: FATAL EXCEPTION [UnityMain]
Unity version : 2020.1.11f1
Device model : samsung SM-T285 Device
Build Type : Release
Scripting Backend : Mono
ABI : armeabi-v7a
Strip Engine Code : false
Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Version '2020.1.11f1 (698c1113cef0)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
Revision: '3'
ABI: 'arm'
Timestamp: 2021-01-23 13:58:11+0100
pid: 19260, tid: 19275, name: UnityMain >>> com.DefaultCompany.Faller <<<
uid: 10128
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6a
Cause: null pointer dereference
r0 00000060 r1 a2ce4480 r2 00000000 r3 0000002b
r4 a16126f0 r5 a0530000 r6 9bfd4c08 r7 a0530000
r8 00000000 r9 9bfd4c08 r10 a39dac90 r11 a16121d0
ip a1ed85bb sp a16120b0 lr a1e2e5df pc a1ed85c0
backtrace:
#00 pc 001fb5c0 /data/app/com.DefaultCompany.Faller-1/lib/arm/libunity.so (BuildId: 863ee33095f02ba0e3cc776944de4f48e3e4d0d5)
#01 pc 0000963e
managed backtrace:
#00 (wrapper managed-to-native) UnityEngine.Advertisements.UnityAdsSettings:get_testMode ()
#01 UnityEngine.Advertisements.Advertisement:Initialize (string,bool,bool) <0x4b>
#02 UnityEngine.Advertisements.Advertisement:Initialize (string,bool) <0x1f>
#03 GameMaster:Start () <0x2b>
#04 (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
at libunity.0x1fb5c0(Native Method)
at UnityEngine.Advertisements.UnityAdsSettings.get_testMode ()(Native Method)
at UnityEngine.Advertisements.Advertisement.Initialize (string,bool,bool)(0x4b:75)
at UnityEngine.Advertisements.Advertisement.Initialize (string,bool)(0x1f:31)
at GameMaster.Start ()(0x2b:43)
at System.Object.runtime_invoke_void__this__ (object,intptr,intptr,intptr)(Native Method)``
Link to reddit post with a vid: https://www.reddit.com/r/Unity2D/comments/l2sxwt/ive_recently_sortof_completed_my_first_simple/?utm_source=share&utm_medium=web2x&context=3
Thanks.
↧