以下是报错内容
FATAL EXCEPTION: main
Process: com.tjkj.tsos:unimp0, PID: 24992
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tjkj.tsos/io.dcloud.feature.sdk.multi.DCUniMPActivity0}: java.lang.NullPointerException: Attempt to invoke interface method 'void aa.e0.j(android.content.Context, java.lang.String, boolean)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3868)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4010)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:111)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2466)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8380)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void aa.e0.j(android.content.Context, java.lang.String, boolean)' on a null object reference
at rb.b.onCreate(Unknown Source:229)
at android.app.Activity.performCreate(Activity.java:8397)
at android.app.Activity.performCreate(Activity.java:8370)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1403)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3841)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4010)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:111)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2466)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8380)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
7 个回复
tsit (作者)
@DCloud_Android_ST
您好,请问遇到过这种情况吗
tsit (作者)
用flutter进行开发的,通过原生调用uni小程序sdk,开发时正常。打包出现的问题
tsit (作者)
@DCloud_Android_DQQ
您好,麻烦请教下,遇到过这种情况吗
tsit (作者)
@DCloud 插件市场
tsit (作者)
配置开启打包混淆,问题解决了。
i***@163.com
能否贴一下gradle的配置呢.我这里也有同样问题
2023-10-17 19:57
w***@163.com
嘎嘎嘎
i***@163.com
解决了,
我这里是通过引用项目的方式引入的小程序. 需要在app目录显得混淆文件中加入混淆规则.