0

我们面临一个与 Opentokfor Android 相关的问题,我们在其中添加了 proguard。您可以查看 log-cat 以获取崩溃日志。

Logcat 崩溃日志 -

    # last system error: 2
    # Check failed: !jni->ExceptionCheck()
    # Error during FindClass: org/otwebrtc/voiceengine/BuildInfo```
4

1 回答 1

0

通过在 Proguard 中添加这些行来解决

-keep class com.opentok.android.Session { *; }
-keep class com.opentok.client.* { *; }
-keep class com.opentok.impl.* { *; }
-keep class com.opentok.otc.* { *; }
-keep class org.webrtc.* { *; }
-keep class org.otwebrtc.* { *; }
-keep class org.otwebrtc.voiceengine.* { *; }
-keep class org.otwebrtc.voiceengine.*
-keep class org.otwebrtc.WebRtcClassLoader{*;}
-keep class org.otwebrtc.voiceengine61.* { *; }
-keep class org.otwebrtc.voiceengine.BuildInfo { *; }

-dontwarn com.opentok.*
-keepclassmembers class com.opentok.* { *; }```
于 2020-10-26T04:50:52.547 回答