Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Android Build Failed

Discussion in 'Editor & General Support' started by bz_apps, Sep 1, 2021.

  1. bz_apps

    bz_apps

    Joined:
    Aug 19, 2014
    Posts:
    70
    Hi, I am having trouble building for Android. It used to work so im not sure if its because I have updated Unity or added some 3rd party library.

    Could someone help me with the log below? All I can see is something about "MetadataCache::GetMethodPointer" but I don't know what this is.

    Code (CSharp):
    1.  
    2. 09/01 13:20:11.938 11514 11538 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    3. 09/01 13:20:11.938 11514 11538 Error CRASH Version '2021.1.18f1 (25bdc3efbc2d)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
    4. 09/01 13:20:11.938 11514 11538 Error CRASH Build fingerprint: 'lge/e7wifi_open_com/e7wifi:5.0.2/LRX22G/152531806c2b0:user/release-keys'
    5. 09/01 13:20:11.938 11514 11538 Error CRASH Revision: '6'
    6. 09/01 13:20:11.938 11514 11538 Error CRASH ABI: 'arm'
    7. 09/01 13:20:11.938 11514 11538 Error CRASH Timestamp: 2021-09-01 13:20:11+0100
    8. 09/01 13:20:11.939 11514 11538 Error CRASH pid: 11514, tid: 11538, name: UnityMain  >>> com.myspecialcompany.myapp <<<
    9. 09/01 13:20:11.939 11514 11538 Error CRASH uid: 10031
    10. 09/01 13:20:11.939 11514 11538 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
    11. 09/01 13:20:11.939 11514 11538 Error CRASH Cause: null pointer dereference
    12. 09/01 13:20:11.939 11514 11538 Error CRASH     r0  00000001  r1  00000000  r2  91532000  r3  00001000
    13. 09/01 13:20:11.940 11514 11538 Error CRASH     r4  9180b888  r5  00000000  r6  00000001  r7  9d4d76c4
    14. 09/01 13:20:11.940 11514 11538 Error CRASH     r8  91390e88  r9  91bc6878  r10 00000000  r11 9d4d76a8
    15. 09/01 13:20:11.940 11514 11538 Error CRASH     ip  b8d768c4  sp  9d4d7670  lr  b6ec9c07  pc  9d957b5c
    16. 09/01 13:20:11.940 11514 11538 Error CRASH
    17. 09/01 13:20:11.940 11514 11538 Error CRASH backtrace:
    18. 09/01 13:20:11.940 11514 11538 Error CRASH       #00 pc 0047eb5c (il2cpp::vm::MetadataCache::GetMethodPointer(Il2CppImage const*, unsigned int) at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/MetadataCache.cpp:707)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    19. 09/01 13:20:11.941 11514 11538 Error CRASH       #01 pc 00484988 (il2cpp::vm::MetadataCache::Initialize() at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/MetadataCache.cpp:208)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    20. 09/01 13:20:11.941 11514 11538 Error CRASH       #02 pc 0046b60c (il2cpp::vm::Runtime::Init(char const*) at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/Runtime.cpp:159)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    21. 09/01 13:20:11.941 11514 11538 Error CRASH       #03 pc 0043d318 (il2cpp_init at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-api.cpp:96)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (il2cpp_init+32) (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    22. 09/01 13:20:11.942 11514 11538 Error CRASH       #04 pc 00974a81 (InitializeIl2CppFromMain(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool) at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (InitializeIl2CppFromMain(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool)+192) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    23. 09/01 13:20:11.942 11514 11538 Error CRASH       #05 pc 009eb071 (UnityInitApplication() at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (UnityInitApplication()+2720) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    24. 09/01 13:20:11.942 11514 11538 Error CRASH       #06 pc 009ebbeb (UnityPlayerLoop() at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (UnityPlayerLoop()+94) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    25. 09/01 13:20:11.942 11514 11538 Error CRASH       #07 pc 00a05071 (nativeRender(_JNIEnv*, _jobject*) at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+40) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    26. 09/01 13:20:11.943 11514 11538 Error CRASH       #08 pc 003a0d03  /data/dalvik-cache/arm/data@app@com.myspecialcompany.myapp-1@base.apk@classes.dex
    27. 09/01 13:20:12.414 11514 11538 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.myspecialcompany.myapp/files/tombstone_01
    28. 01/01 00:00:00.000 -1 -1 Info  --------- beginning of crash
    29. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime FATAL EXCEPTION: UnityMain
    30. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Process: com.myspecialcompany.myapp, PID: 11514
    31. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime java.lang.Error: FATAL EXCEPTION [UnityMain]
    32. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Unity version     : 2021.1.18f1
    33. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Device model      : LGE LG-V400
    34. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Device fingerprint: lge/e7wifi_open_com/e7wifi:5.0.2/LRX22G/152531806c2b0:user/release-keys
    35. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Build Type        : Development
    36. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Scripting Backend : IL2CPP
    37. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime ABI               : armeabi-v7a
    38. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Strip Engine Code : true
    39. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime
    40. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    41. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Version '2021.1.18f1 (25bdc3efbc2d)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
    42. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Build fingerprint: 'lge/e7wifi_open_com/e7wifi:5.0.2/LRX22G/152531806c2b0:user/release-keys'
    43. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Revision: '6'
    44. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime ABI: 'arm'
    45. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Timestamp: 2021-09-01 13:20:11+0100
    46. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime pid: 11514, tid: 11538, name: UnityMain  >>> com.myspecialcompany.myapp <<<
    47. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime uid: 10031
    48. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
    49. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime Cause: null pointer dereference
    50. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     r0  00000001  r1  00000000  r2  91532000  r3  00001000
    51. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     r4  9180b888  r5  00000000  r6  00000001  r7  9d4d76c4
    52. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     r8  91390e88  r9  91bc6878  r10 00000000  r11 9d4d76a8
    53. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     ip  b8d768c4  sp  9d4d7670  lr  b6ec9c07  pc  9d957b5c
    54. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime
    55. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime backtrace:
    56. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #00 pc 0047eb5c (il2cpp::vm::MetadataCache::GetMethodPointer(Il2CppImage const*, unsigned int) at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/MetadataCache.cpp:707)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    57. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #01 pc 00484988 (il2cpp::vm::MetadataCache::Initialize() at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/MetadataCache.cpp:208)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    58. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #02 pc 0046b60c (il2cpp::vm::Runtime::Init(char const*) at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/Runtime.cpp:159)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    59. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #03 pc 0043d318 (il2cpp_init at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-api.cpp:96)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libil2cpp.so (il2cpp_init+32) (BuildId: 8047b3f78e315d11aca0ecf19a7f31fe65f20a9c)
    60. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #04 pc 00974a81 (InitializeIl2CppFromMain(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool) at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (InitializeIl2CppFromMain(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool)+192) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    61. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #05 pc 009eb071 (UnityInitApplication() at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (UnityInitApplication()+2720) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    62. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #06 pc 009ebbeb (UnityPlayerLoop() at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (UnityPlayerLoop()+94) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    63. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #07 pc 00a05071 (nativeRender(_JNIEnv*, _jobject*) at ??:?)  /data/app/com.myspecialcompany.myapp-1/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+40) (BuildId: 3e20587b68c60dbe5e77b19320fac3b24dc9e16e)
    64. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime       #08 pc 003a0d03  /data/dalvik-cache/arm/data@app@com.myspecialcompany.myapp-1@base.apk@classes.dex
    65. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime
    66. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libil2cpp.0x47eb5c (il2cpp::vm::MetadataCache::GetMethodPointer(Il2CppImage const*, unsigned int) at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/MetadataCache.cpp:707)(Native Method)
    67. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libil2cpp.0x484988 (il2cpp::vm::MetadataCache::Initialize() at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/MetadataCache.cpp:208)(Native Method)
    68. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libil2cpp.0x46b60c (il2cpp::vm::Runtime::Init(char const*) at /Applications/Unity/Hub/Editor/2021.1.18f1/Unity.app/Contents/il2cpp/libil2cpp/vm/Runtime.cpp:159)(Native Method)
    69. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libil2cpp.il2cpp_init(il2cpp_init:32)
    70. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libunity.InitializeIl2CppFromMain(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool)(InitializeIl2CppFromMain:192)
    71. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libunity.UnityInitApplication()(UnityInitApplication:2720)
    72. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libunity.UnityPlayerLoop()(UnityPlayerLoop:94)
    73. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at libunity.nativeRender(_JNIEnv*, _jobject*)(nativeRender:40)
    74. 09/01 13:20:12.425 11514 11538 Error AndroidRuntime     at data@app@tv.0x3a0d03(Native Method)
    75.  
     
  2. segant

    segant

    Joined:
    May 3, 2017
    Posts:
    196
    Did you solve it? I get same error