[Unity] Crash on Android Startup
🧐 버그로 나타나는 현상
- 플랫폼 : 안드로이드
- 게임 실행 직후 유니티 로고가 나타나기 전 앱 크래쉬
⚒️ 해결 방법 (순차적)
1. 첫 번째 시도
해결 방법
- Library 폴더 아래에 있는 il2cpp로 시작하는 모든 폴더 제거
원인
- Happens frequently when switching between architecture types, for example going from a Mono/ARMv7 Build to a IL2CPP/ARMv7+ARM64 build.
- 아키텍처 유형을 변경하는 경우 간헐적으로 발생함. (예를들어 Mono/ARMv7 빌드를 했다가 IL2CPP/ARMv7 + ARM64 빌드를 하는 경우)
📒 참고자료
Unity IL2CPP ARMv7 ARM64 build crash on android startup
Unity IL2CPP ARMv7 ARM64 build crash on android startup
유니티 포럼 https://forum.unity.com/threads/android-il2cpp-build-crashes-while-select-both-arm64-and-armv7-architecture.1113217/ 이슈 트래커 https://issuetracker.unity3d.com/issues/android-specific-project-crash-on-pthread-mutex-lock-when-buildin
mentum.tistory.com
2. 두 번째 시도
해결 방법
- SDK 연결 확인
- 단 빈 프로젝트를 만든 후 안드로이드 빌드해서 실행된다면 SDK 문제가 아님.
- SDK 연결이 잘 안된다면, 원하는 유니티 버전에 직접 복사, 붙여 넣기 해준다.
원인
- 유니티 버전과 Target API 레벨이 맞지 않아 앱이 실행 되지 못함.
📒 참고자료
Unity IssueTracker - [Android] TargetAPI 34 crash on launch
Unity IssueTracker - [Android] TargetAPI 34 crash on launch
*Steps to reproduce:* # Open the attached 1361131_windowed-trunk project # Build the application without changing settings # Deploy ...
issuetracker.unity3d.com
3. 세 번째 시도
해결 방법
- Target API 다운그레이드
- API Level 34 → API Level 33
원인
- Unity는 현재 SDK 34에 버그가 있는 듯함. Unity는 이 이슈에 대한 명확한 문서는 현재 없음.
📒 참고자료
Question - Android 14 (API Level 34) in Unity 2020 LTS and 2021 LTS
Question - Android 14 (API Level 34) in Unity 2020 LTS and 2021 LTS
Hi, Is Android 14 supported as a build target in Unity 2020 and 2021 ? I have tried building an empty project in Unity 2020.3.30f1 and Unity...
forum.unity.com
다들 안드로이드 14 호환시켰어?? 실행이 안된다고 그러네 - 인디 게임 개발 마이너 갤러리
4. 네 번째 시도
해결 방법
GitHub - google/play-unity-plugins: The Google Play Plugins for Unity provide C# APIs for accessing various Play services
The Google Play Plugins for Unity provide C# APIs for accessing various Play services - google/play-unity-plugins
github.com
- GooglePlayPlugins 버전 업그레이드 or 삭제 후 다시 받기
원인
- Unity || Android 버전 호환이 안되는 경우가 있음.
📒 참고자료
Crash at Android 12 · Issue #187 · google/play-unity-plugins
Crash at Android 12 · Issue #187 · google/play-unity-plugins
Hello I'm now experiencing crash on android devices with Android 12 only. thread.cc:2372] Throwing new exception 'No interface method getPackStates(Ljava/util/List;)Lcom/google/android/play/core/ta...
github.com
Target API 올렸을때 나온 모든 오류
유니티 App.... Target API 33 이상으로 올렸을때 문제 (1) 바로꺼지는 문제 - API31 폰에서는 잘 열리는데, API33 폰에서는 바로 꺼짐(로고도 안나오고 바로꺼짐) *테스트방법 1. SDK 문제인지 확인하기 > 빈
opchacha.tistory.com
해결 방법
- COM.GOOGLE.ANDROID.PLAY:CORE:1.10.3 플러그인 삭제 혹은 업데이트
원인
- 안드로이드 버전 14 이상인 디바이스에서 충돌이 나는 현상이 발생됨.
📒 참고자료
Unity IssueTracker - [Android] Player crashes when “com.google.android.play:core:1.10.3” is implemented in mainTemplate grad
Reproduction steps: 1. Open the attached project “ReproProject” 2. Ensure Target API Level 34 is selected at (menu: Edit > Projec...
issuetracker.unity3d.com