【问题标题】:Fatal error in: ../../src/modules/utility/source/helpers_android.cc, line 74致命错误:../../src/modules/utility/source/helpers_android.cc,第 74 行
【发布时间】:2020-10-21 10:32:00
【问题描述】:

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

Logcat 崩溃日志 -

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

【问题讨论】:

    标签: android webrtc opentok webrtc-android


    【解决方案1】:

    通过在 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.* { *; }```
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-17
      • 1970-01-01
      • 2018-01-19
      • 1970-01-01
      • 2012-08-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多