注册

flutter集成oppo 出错闪退

OPPO 型号A93,coloros v11.1
flutter 版本 1.22.6
请问怎么处理啊。
enableOppPush 之后就闪退了
E/AndroidRuntime( 2754): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/heytap/msp/push/HeytapPushManager;
E/AndroidRuntime( 2754): at com.hyphenate.push.platform.oppo.a.b(Unknown Source:0)
E/AndroidRuntime( 2754): at com.hyphenate.push.platform.a.a(Unknown Source:6)
E/AndroidRuntime( 2754): at com.hyphenate.push.EMPushHelper.a(Unknown Source:143)
E/AndroidRuntime( 2754): at com.hyphenate.push.EMPushHelper.register(Unknown Source:35)
E/AndroidRuntime( 2754): at com.hyphenate.chat.EMClient$7.run(Unknown Source:204)
E/AndroidRuntime( 2754): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime( 2754): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime( 2754): at java.lang.Thread.run(Thread.java:923)
E/AndroidRuntime( 2754): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.heytap.msp.push.HeytapPushManager" on path: DexPathList[[zip file "/data/app/~~I_4PWXOuaPas3AgyuPV3sA==/com.autopaipai.app-wJ4YQa7iHN__Sof-XtYDAA==/base.apk"],nativeLibraryDirectories=[/data/app/~~I_4PWXOuaPas3AgyuPV3sA==/com.autopaipai.app-wJ4YQa7iHN__Sof-XtYDAA==/lib/arm64, /data/app/~~I_4PWXOuaPas3AgyuPV3sA==/com.autopaipai.app-wJ4YQa7iHN__Sof-XtYDAA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64, /vendor/lib64, /odm/lib64]]
E/AndroidRuntime( 2754): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
E/AndroidRuntime( 2754): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime( 2754): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)


已邀请:

看着报错是HeytapPushManager这个类没有找到,oppo推送的aar包引入了吗

OPPO SDK升级到2.1.0后需要进行初始化
HeytapPushManager.init(context, true);
可以看看原生那边有没有初始化oppo sdk

要回复问题请先登录注册