修复游戏SDK在Android14时无法加载的问题
This commit is contained in:
parent
63b7a18c0b
commit
516a068c25
@ -222,10 +222,10 @@ dependencies {
|
||||
// api(name: 'umeng-common-9.6.8+000', ext: 'aar')
|
||||
//高级运营分析功能依赖库,使用卸载分析、开启反作弊能力请务必集成,以免影响高级功能使用。common需搭配v9.6.3及以上版本,asms需搭配v1.7.0及以上版本。需更新隐私声明。
|
||||
// 标准版本SudMGP SDK
|
||||
api 'tech.sud.mgp:SudMGP:1.3.3.1158'
|
||||
api 'tech.sud.mgp:SudMGP:1.4.3.1201'
|
||||
|
||||
// 多语言语音识别扩展库(可选)
|
||||
api 'tech.sud.mgp:SudASR:1.3.3.1158'
|
||||
api 'tech.sud.mgp:SudASR:1.4.3.1201'
|
||||
//侧滑删除
|
||||
api 'com.yanzhenjie.recyclerview:x:1.3.2'
|
||||
|
||||
|
@ -10,6 +10,7 @@ import android.view.ViewTreeObserver;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.yunbao.common.BuildConfig;
|
||||
import com.yunbao.common.sud.decorator.SudFSMMGCache;
|
||||
import com.yunbao.common.sud.decorator.SudFSMMGDecorator;
|
||||
import com.yunbao.common.sud.decorator.SudFSMMGListener;
|
||||
@ -113,6 +114,9 @@ public abstract class BaseGameViewModel implements SudFSMMGListener {
|
||||
String appKey = getAppKey();
|
||||
boolean testEnv = isTestEnv();
|
||||
// 初始化sdk
|
||||
if(BuildConfig.DEBUG) {
|
||||
SudMGP.setLogLevel(Log.DEBUG);
|
||||
}
|
||||
SudMGP.initSDK(activity, appId, appKey, testEnv, new ISudListenerInitSDK() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
|
Loading…
Reference in New Issue
Block a user