java.lang.ClassNotFoundException: com.google.android.gms.ads.initialization.OnInitializationCompleteListener
progard를 추가해주면 깔끔하게 끝나는 문제입니다.
PlayerSettings -> Publishing Setting -> Build -> Custom progard File Check
Open Progard.txt [ Plugin/ Android/ progard-user.txt]
-keep class com.google.unity.** {
*;
}
-keep public class com.google.android.gms.ads.**{
public *;
}
-keep public class com.google.ads.**{
public *;
}
-keepattributes *Annotation*
-dontobfuscate
위에 내용을 작성함
그리고.
Assets -> Exterminal Dependency Manager -> Android Resolver -> Force Resolver
실행 하면 정상동작
혹여나 중단되거나 에러가 나는경우
Editor 버전이 2020.xx 이상인경우
PlayerSettings -> Publishing Setting -> Build
- Use r8 check 상태 확인해야함.
Reference
https://medium.com/@radicho/how-to-implement-admob-in-unity-a-bit-more-detailed-guide-4baed2821cce
Assets 2D Game (0) | 2023.06.20 |
---|---|
java.lang.ClassNotFoundException: com.google.android.gms.games.Games (0) | 2022.12.26 |
Unity IAP Google License Key 입력시 You are not authorized to set the license key (0) | 2022.12.26 |
Untiy 입력시스템 (63) | 2022.05.23 |
Unity 기본 창과 라이선스 발급 (59) | 2022.05.15 |
Github Desktop 사용방법 (60) | 2022.04.19 |