본문 바로가기

개발하면서

Can't find common super class of [com/google/android/gms/internal/zzko] (with 1 known super classes) and [android/os/RemoteException] (with 5 known super classes)

반응형

며칠간 이 에러로 많은 검색과 시행착오를 거쳤다.

 

gcm -> fcm 으로 변경하면서

build -> apk 을 만들면서 proguard를 적용해서 난독화를 하다보니

아래와 같이 에러 메세지가 나왔다.

 

Can't find common super class of [com/google/android/gms/internal/zzko] (with 1 known super classes) and [android/os/RemoteException] (with 5 known super classes)

 

이것의 원인은 

--> implementation 'com.google.android.gms:play-services:12.0.1'

이것 때문인데

 

구글링을 통해서 찾아 보니

포괄적으로 'com.google.android.gms:play-services' 을 넣지 말고

'gcm'에 필요한 라이브러리를 명확하게 명시하라고 되어 있다.

 

https://mvnrepository.com/artifact/com.google.android.gms/play-services-gcm/16.1.0

 

Maven Repository: com.google.android.gms » play-services-gcm » 16.1.0

com.google.android.gms play-services-gcm 16.1.0 // https://mvnrepository.com/artifact/com.google.android.gms/play-services-gcm compile group: 'com.google.android.gms', name: 'play-services-gcm', version: '16.1.0' // https://mvnrepository.com/artifact/com.g

mvnrepository.com

을 통해서 알아 보면

gcm을 위해서는 4가지 라이브러리가 필요하다고 되어 있다.

 

 

그래서

최종적으로 

 

implementation 'com.google.android.gms:play-services-base:16.0.1'
implementation 'com.google.android.gms:play-services-basement:16.2.0'
implementation 'com.google.android.gms:play-services-iid:16.0.1'
implementation 'com.google.android.gms:play-services-stats:16.0.1'
implementation 'com.google.android.gms:play-services-gcm:16.1.0'

 

 

이렇게 변경하여 문제를 최종적으로 해결하였다...

이틀간 힘들었다.

 

 

반응형