wmpf2.2
app拉起小程序框架后,小程序调用wmpf.Channel.invoke操作wmpfsdk时报错,init() first,init有生命周期?需要重复调用?还是说和activedevice有关系,
日志如下
java.lang.ExceptionInInitializerError
at com.tencent.wmpf.cli.api.WMPF$Holder.access$100(WMPF.java:25)
at com.tencent.wmpf.cli.api.WMPF.getInstance(WMPF.java:41)
at com.example.athree_wmpf.contentprovider.ThirdPartContentProvider.insert(ThirdPartContentProvider.kt:48)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:265)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:152)
at android.os.Binder.execTransact(Binder.java:731)
Caused by: java.lang.IllegalStateException: invoke WMPFBoot.init() first!
at com.tencent.wmpf.cli.api.WMPF.<init>(WMPF.java:33)
at com.tencent.wmpf.cli.api.WMPF.<init>(WMPF.java:19)
at com.tencent.wmpf.cli.api.WMPF$Holder.<clinit>(WMPF.java:26)
at com.tencent.wmpf.cli.api.WMPF$Holder.access$100(WMPF.java:25)
at com.tencent.wmpf.cli.api.WMPF.getInstance(WMPF.java:41)
at com.example.athree_wmpf.contentprovider.ThirdPartContentProvider.insert(ThirdPartContentProvider.kt:48)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:265)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:152)
at android.os.Binder.execTransact(Binder.java:731)
前置条件不满足, 按照报错信息里的提示来吧。