Kakao i Connect Live 커뮤니티

[안드로이드] build:gradle 7.0.4 환경에서 테스트 앱 실행 중 exception 문의

안녕하세요. sample source 테스트 중 몇가지 문의 드립니다.

  1. 하기 환경으로 kakao connect 실행 시 exception 발생
    Android Studio 환경 : build:gradle:7.0.4
    kakao connect : sdk 2.7.2.aar

어떤 작업을 추가 하면 되는건지 확인 부탁드립니다.

exception 내용 :
2022-02-21 14:22:06.946 23213-23213/com.bcm.uphone3.android.dev E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.bcm.uphone3.android.dev, PID: 23213
java.lang.NoClassDefFoundError: Failed resolution of: Lio/netty/util/internal/logging/JdkLoggerFactory;
at com.remotemonster.sdk.network.WebSocketClient.(WebSocketClient.java:76)
at com.remotemonster.sdk.network.SignalWebSocketClient.(SignalWebSocketClient.java:46)
at com.remotemonster.sdk.network.RestServiceHandler$5.onResponse(RestServiceHandler.java:393)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$retrofit2-DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:89)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$$ExternalSyntheticLambda1.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8633)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “io.netty.util.internal.logging.JdkLoggerFactory” on path: DexPathList[[zip file “/data/app/~~UU6Q89m_89xbRvu5UcqZyw==/com.bcm.uphone3.android.dev-g3gWTrJlKtJpS7Zt0-H_aw==/base.apk”],nativeLibraryDirectories=[/data/app/~~UU6Q89m_89xbRvu5UcqZyw==/com.bcm.uphone3.android.dev-g3gWTrJlKtJpS7Zt0-H_aw==/lib/arm64, /data/app/~~UU6Q89m_89xbRvu5UcqZyw==/com.bcm.uphone3.android.dev-g3gWTrJlKtJpS7Zt0-H_aw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.remotemonster.sdk.network.WebSocketClient.(WebSocketClient.java:76)
at com.remotemonster.sdk.network.SignalWebSocketClient.(SignalWebSocketClient.java:46)
at com.remotemonster.sdk.network.RestServiceHandler$5.onResponse(RestServiceHandler.java:393)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$retrofit2-DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:89)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$$ExternalSyntheticLambda1.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8633)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

2.com.remotemonster.sdk.core.record.UnpackAecdump 접근 불가
Android Studio 환경 : build:gradle:7.0.4
kakao connect : sdk 2.9.5.aar

상기 환경으로 진행시에는 UnpackAecdump 접근이 불가능한데,
버전별 doc 문서 정리된 페이지가 있을까요??

감사합니다.

UnpackAecdump 이 누락된 버전이 있었던 히스토리가 있습니다.
최신버전의 SDK 이용을 부탁드립니다.

https://icl.jfrog.io/ui/native/kakaoenterprise/com/kakaoenterprise/kakao-i-connect-live/2.9.12

감사합니다.

답변 주신 2.9.12 로 변경 후 엔 하기와 같은 exception 이 발생하고 있습니다.

Android studio 환경은 build:gradle:7.0.4 이며,
전달해 주신 링크 참고 하여 kakao sdk의 경우 import 했고,
org.webrtc는 gradle에 implementation ‘org.webrtc:google-webrtc:1.0.+’ 추가 하였습니다.

하기 현상 수정할 수 있는 방법이 있을까요?

2022-02-22 15:24:01.864 5384-5861/com.bcm.uphone3.android.dev E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
Process: com.bcm.uphone3.android.dev, PID: 5384
java.lang.NoSuchMethodError: No static method parseString(Ljava/lang/String;)Lcom/google/gson/JsonElement; in class Lcom/google/gson/JsonParser; or its super classes (declaration of ‘com.google.gson.JsonParser’ appears in /data/app/~~MKrcLLdmQ5S7ylKxisUpNw==/com.bcm.uphone3.android.dev-R3dV_8XVpayRJFDnQDw6hQ==/base.apk!classes18.dex)
at com.remotemonster.sdk.data.KafkaLog.getJsonKafkaLog(KafkaLog.java:32)
at com.remotemonster.sdk.RemonClient.sendKafkaLog(RemonClient.java:1352)
at com.remotemonster.sdk.RemonClient$3.onConnectSocket(RemonClient.java:1290)
at com.remotemonster.sdk.network.SignalWebSocketClient$doConnect$1.onOpen(SignalWebSocketClient.kt:42)
at com.remotemonster.sdk.network.WebSocketUtilsKt$connectWebSocket$2.onOpen(WebSocketUtils.kt:35)
at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:194)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)

안녕하세요 :slight_smile:
gson 에서 parseString 이 2.8.6버전 부터 제공되는데요
하위버전에 의존성을 사용하고 계신것으로 생각됩니다.

해당부분의 수정이 어려우시다면,
./gradlew [sample 의 module]:dependencies 로 의존성 목록을 확인 하여 공유 부탁드립니다.

감사합니다.