728x90

문제: 유니티 에디터에서는 되는데 모바일에서 안뜸.

과정: 안드로이드 스튜디오로 로그를 보니 sdk초기화가 안되고, 제목과 같은 에러가 나옴.

해결:
1. Build Settings > Player Setting > Publishing Settings > Custom Progurard File
2. 생성된 Custom Progurard File에 아래 소스 넣기.

-keep class cohttp://m.google.unity.** {
   *;
}
-keep public class cohttp://m.google.android.gms.ads.**{
   public *;
}
-keep public class cohttp://m.google.ads.**{
   public *;
}
-keepattributes *Annotation*

 

 

728x90
반응형

+ Recent posts