本文共 374 字,大约阅读时间需要 1 分钟。
使用WebRtc的时候报异常:java.lang.NoSuchMethodError: No static method create()Lorg/webrtc/EglBase;
EglBase.Context eglBaseContext = EglBase.create().getEglBaseContext();
1.app的build.gradle配置
compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8}
2.Android Studio的gradle版本选择
classpath 'com.android.tools.build:gradle:3.4.1'
gradle的版本选择5.3.1。即可解决以上问题
转载地址:http://byvef.baihongyu.com/