onReady() {
// #ifdef APP-PLUS
this.adOption = {
adpid: '1507000689'
};
// #endif
// #ifdef MP-WEIXIN
this.adOption = {
adUnitId: ''
};
// #endif
this.createAd(); // 注释此代码可正常运行,反之则卡死闪退
},
![paulxiaooo](https://img-cdn-tc.dcloud.net.cn/account/identicon/0850b95bed86d44ab9ef929dc9159872.png)
- 发布:2020-09-07 15:34
- 更新:2020-09-14 17:07
- 阅读:1148
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX版本号: 2.8.8
示例代码:
操作步骤:
hello-uni-app ios13.6真机测试 点击ad组件==》激励视频api
hello-uni-app ios13.6真机测试 点击ad组件==》激励视频api
预期结果:
激励视频api正常加载
激励视频api正常加载
实际结果:
激励视频api加载导致编辑器报错
激励视频api加载导致编辑器报错
bug描述:
官方demo hello-uni-app ios13.6真机测试 点击ad组件==》激励视频api app直接卡死并闪退, hbuildx日志报错
Hbuilderx 日志如下:
2020-09-07 15:24:52 [LanguageServerProcess] io.dcloud.editor.js.contentassist.model.TypeElement cannot be cast to java.util.Map
2020-09-07 15:24:52 [LanguageServerProcess] java.lang.ClassCastException: io.dcloud.editor.js.contentassist.model.TypeElement cannot be cast to java.util.Map
at io.dcloud.editor.js.contentassist.index.JSIndexCacheReader.getRelationTypes(JSIndexCacheReader.java:323)
at io.dcloud.editor.js.contentassist.JSIndexQueryHelper.getRelationTypes(JSIndexQueryHelper.java:794)
at io.dcloud.editor.js.contentassist.index.JSIndexCacher.flushProposal(JSIndexCacher.java:212)
at io.dcloud.editor.js.contentassist.index.JSFileIndexingParticipant.saveIndex(JSFileIndexingParticipant.java:1297)
at io.dcloud.editor.html.contentassist.index.HTMLFileIndexingParticipant.saveIndex(HTMLFileIndexingParticipant.java:580)
at io.dcloud.index.core.AbstractRemoteFileIndexingParticipant.offlineIndex(AbstractRemoteFileIndexingParticipant.java:102)
at io.dcloud.index.core.AbstractRemoteFileIndexingParticipant.index(AbstractRemoteFileIndexingParticipant.java:93)
at io.dcloud.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:298)
at io.dcloud.index.core.IndexUrisJob.run(IndexUrisJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
2020-09-07 15:24:53 [LanguageServerProcess] io.dcloud.editor.js.contentassist.model.TypeElement cannot be cast to java.util.Map
2020-09-07 15:24:53 [LanguageServerProcess] java.lang.ClassCastException: io.dcloud.editor.js.contentassist.model.TypeElement cannot be cast to java.util.Map
at io.dcloud.editor.js.contentassist.index.JSIndexCacheReader.getRelationTypes(JSIndexCacheReader.java:323)
at io.dcloud.editor.js.contentassist.JSIndexQueryHelper.getRelationTypes(JSIndexQueryHelper.java:794)
at io.dcloud.editor.js.contentassist.index.JSIndexCacher.flushProposal(JSIndexCacher.java:212)
at io.dcloud.editor.js.contentassist.index.JSFileIndexingParticipant.saveIndex(JSFileIndexingParticipant.java:1297)
at io.dcloud.editor.html.contentassist.index.HTMLFileIndexingParticipant.saveIndex(HTMLFileIndexingParticipant.java:580)
at io.dcloud.index.core.AbstractRemoteFileIndexingParticipant.offlineIndex(AbstractRemoteFileIndexingParticipant.java:102)
at io.dcloud.index.core.AbstractRemoteFileIndexingParticipant.index(AbstractRemoteFileIndexingParticipant.java:93)
at io.dcloud.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:298)
at io.dcloud.index.core.IndexUrisJob.run(IndexUrisJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
2020-09-07 15:24:53 [LanguageServerProcess] source dir:D:\workspace\lab\uni-app\hello-uni-app\unpackage\dist\dev\app-plus/
2020-09-07 15:24:53 [LanguageServerProcess] C:/Users/Hp/AppData/Local/Temp/1599463493434.req
2020-09-07 15:24:55 [LanguageServerProcess] C:/Users/Hp/AppData/Local/Temp/1599463495896.req
paulxiaooo (作者)
没有试过,没有苹果证书, 首次安装可以正常播放广告, 直接杀掉app进程后打开就会卡死并闪退
2020-09-16 15:53
CLP
回复 paulxiaooo: 没有苹果证书? 以后不上架? 开发者证书没有吗?
2020-09-16 20:26
paulxiaooo (作者)
回复 CLP: 还在申请中
2020-09-17 10:03
CLP
回复 paulxiaooo: 你先将就的用基座开发吧,等你打自定义基座,用你自己的广告位就好了
2020-09-17 11:31
paulxiaooo (作者)
回复 CLP: OK, 谢谢
2020-09-17 14:22