离线打包HBuilder使用版本为3.6.4,没有使用百度地图,应用启动报
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/baidu/mapapi/SDKInitializer;
at io.dcloud.js.map.MapInitImpl.onStart(MapInitImpl.java:34)
at io.dcloud.e.c.c.a(Unknown Source:177)
at io.dcloud.e.c.c.a(Unknown Source:19)
at io.dcloud.e.c.d.a(Unknown Source:5)
at io.dcloud.EntryProxy.onCreate(Unknown Source:6)
at io.dcloud.b.onRuntimeCreate(Unknown Source:3)
at io.dcloud.WebAppActivity.onRuntimeCreate(Unknown Source:2)
at io.dcloud.b$a$a.run(Unknown Source:1)
at io.dcloud.b$c.onCallBack(Unknown Source:9)
at io.dcloud.b.a(Unknown Source:179)
at io.dcloud.b.a(Unknown Source:2)
at io.dcloud.b$a.run(Unknown Source:10)
at android.os.Handler.handleCallback(Handler.java:966)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:293)
at android.app.ActivityThread.main(ActivityThread.java:9550)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1204)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.baidu.mapapi.SDKInitializer" on path: DexPathList[[zip file "/data/app/~~-SmKeCVZd4OIPsEvK0acpQ==
m***@sina.com
- 发布:2022-11-04 15:44
- 更新:2022-11-04 15:49
- 阅读:292
m***@sina.com (作者)
根据文档进行的配置,并没有使用百度地图,为什么报百度地图的相关类找不到
2022-11-04 15:58
DCloud_Android_zl
回复 m***@sina.com: 如果没用到就参考上面的文章去掉就可以了。报百度地图找不到类是因为你配置中添加了百度相关模块但是并没有配全,百度地图需要启动初始化,没配全就会报错。
2022-11-08 12:00