当我在expo弹出到expokit项目中使用react-native-webrtc库时,android应用程序发布崩溃,相反,在常规的react-native项目(而不是expo)中使用react-native-webrtc库是很好的。
我通过adb logcat得到了这个错误
06-21 10:42:44.188 24576 24576 F DEBUG : #04 pc 00000000001e79e8 /data/app/com.tsao-1/lib/arm64/libjingle_peerconnection_so.so (offset 0x1e1000)
06-21 10:42:44.189 24576 24576 F DEBUG : #05 pc 0000000000258dac /data/app/com.tsao-1/lib/arm64/libjingle_peerconnection_so.so (offset 0x1e1000)
06-21 10:42:44.189 24576 24576 F DEBUG : #06 pc 00000000002566e4 /data/app/com.tsao-1/lib/arm64/libjingle_peerconnection_so.so (offset 0x1e1000)
06-21 10:42:44.189 24576 24576 F DEBUG : #07 pc 00000000001e1020 /data/app/com.tsao-1/lib/arm64/libjingle_peerconnection_so.so (offset 0x1e1000) (JNI_OnLoad+32)这是库链接https://github.com/react-native-webrtc/react-native-webrtc#creator
我知道它的信息较少,但我真的不知道发生了什么,有人在这个库中有一些经验或任何想法吗?
发布于 2019-06-24 13:46:02
我发现常规的react-native项目设置minifyEnabled = false,但expo设置为真,最后我也在expo项目中将minifyEnabled设置为false,然后它就起作用了。
release {
minifyEnabled false // setting true will crash
}https://github.com/react-native-webrtc/react-native-webrtc/issues/646
https://stackoverflow.com/questions/56696400
复制相似问题