o***@aihuayan.com
o***@aihuayan.com
  • 发布:2025-10-19 11:32
  • 更新:2025-10-21 10:05
  • 阅读:106

鸿蒙项目集成unisdk

分类:uni-app

鸿蒙项目集成unisdk,openUniMP方法打开uni页面,一直显示空白页面。

2025-10-19 11:32 负责人:无 分享
已邀请:
o***@aihuayan.com

o***@aihuayan.com (作者)

log日志:

10-19 15:42:10.604 40323-40323 A00000/hanmake...ation/testTag com.hanma...lication I Ability onCreate
10-19 15:42:10.616 40323-40323 A00000/hanmake...ation/testTag com.hanma...lication I Ability onWindowStageCreate
10-19 15:42:10.633 40323-40323 A00000/hanmake...ation/testTag com.hanma...lication I Ability onForeground
10-19 15:42:10.666 40323-40323 A00000/hanmake...ation/testTag com.hanma...lication I Succeeded in loading the content.
10-19 15:42:15.485 40323-40323 A03D00/hanmake...ication/JSAPP com.hanma...lication I index 点击 click
10-19 15:42:15.485 40323-40323 A03D00/hanmake...ication/JSAPP com.hanma...lication I UniMP isExists:false
10-19 15:42:15.485 40323-40323 A03D00/hanmake...ication/JSAPP com.hanma...lication I UniMP path:/data/storage/el1/bundle/entry/resources/resfile/UNIEC57CCB.wgt
10-19 15:42:15.546 40323-40323 A03D00/hanmake...ication/JSAPP com.hanma...lication I UniMP result: {"code":1}
10-19 15:42:15.547 40323-40323 A03D00/hanmake...ication/JSAPP com.hanma...lication I UniMP-open:[object Object]
10-19 15:42:15.554 40323-40323 A03D00/hanmake...ication/JSAPP com.hanma...lication I UniMP-show
10-19 15:42:15.895 40323-40872 A00000/hanmake...on/JS_RUNTIME com.hanma...lication E [UniAppRuntime][40872] 9 <- OH_JSVM_RunScript(runtime->env, script,

  • DCloud_UNI_yuhe

    使用的版本是多少? UniMP-open:[object Object] 这个地方json stringify 看一下内容是啥

    2025-10-20 11:38

  • o***@aihuayan.com (作者)

    回复 DCloud_UNI_yuhe: 请问鸿蒙版本的有demo可参考吗?

    2025-10-21 10:07

  • DCloud_UNI_yuhe

    回复 o***@aihuayan.com: 这有一个:https://juejin.cn/post/7495648783344156683

    2025-10-21 11:06

o***@aihuayan.com

o***@aihuayan.com (作者)

Hbuilder: 4.6.6版本打包的wgt

deveco studio: 5.0.5 release

UniMP-open:{"window":null,"context":null,"router":{"pathArray":[],"isReplace":0,"type":"NavPathStack","disableAllAnimation":false,"animated":true,"popArray":[]},"showCapsuleButton":false,"capsuleMenuActionSheetItems":[],"capsuleButtonStyle":{},"runtimeVersion":"","waitForRestart":false,"showSplashScreen":true,"_emitter":{},"_runtime":null,"_disableAutoShow":false,"_minimize":true,"userAgent":{"value":"uni-app","concatenate":true,"fullUserAgent":""},"_closed":false,"appId":"UNIEC57CCB","isMain":false,"host":"uniec57ccb.uniapp.dcloud.io","animationType":"slide-in-bottom","animationDuration":300,"launchOptions":{"channel":"","launcher":"default","redirectInfo":{}},"manifest":{"@platforms":["android","iPhone","iPad"],"id":"UNIEC57CCB","name":"听脑AI","version":{"name":"6.0.4","code":212},"description":"","developer":{"name":"","email":"","url":""},"permissions":{"Payment":{},"VideoPlayer":{},"Camera":{},"Share":{},"Push":{},"OAuth":{},"Record":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":false,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"safearea":{"bottom":{"offset":"none"}},"nativePlugins":{"yj-ssemodule":{"plugin_info":{"name":"ssemodule","description":"sse网络请求","platforms":"Android,iOS","url":"https://ext.dcloud.net.cn/plugin?id=19103","android_package_name":"com.xiuyu.tingnaoai","ios_bundle_id":"com.xiuyu.tingnaoai","isCloud":true,"bought":1,"pid":"19103","parameters":{}}},"life-FileShare":{"plugin_info":{"name":"安卓ios分享任意类型文件","description":"ios和安卓任意分享文件","platforms":"Android,iOS","url":"https://ext.dcloud.net.cn/plugin?id=2307","android_package_name":"com.xiuyu.tingnaoai","ios_bundle_id":"com.xiuyu.tingnaoai","isCloud":true,"bought":1,"pid":"2307","parameters":{}}},"KJ-Document":{"plugin_info":{"name":"app添加“用其他应用打开”中、系统分享、浏览器,获取分享的文件或者链接","description":"app添加“用其他应用打开”中、系统分享、浏览器、文件传递,获取分享的文件或者链接、第三方APP打开文件到自己APP(ios、android) 、请试用合适再购买、请试用合适再购买、请试用合适再购买","platforms":"Android,iOS","url":"https://ext.dcloud.net.cn/plugin?id=6901","android_package_name":"com.xiuyu.tingnaoai","ios_bundle_id":"com.xiuyu.tingnaoai","isCloud":true,"bought":1,"pid":"6901","parameters":{}}},"Z-AdservicesPlugun":{"plugin_info":{"name":"ios广告归因获取token","description":"Adservices广告归因需要用ios原生的方式才能获取到token,通过原生的attributionToken方法获取到token并返回","platforms":"iOS","url":"https://ext.dcloud.net.cn/plugin?id=10751","android_package_name":"com.xiuyu.tingnaoai","ios_bundle_id":"com.xiuyu.tingnaoai","isCloud":true,"bought":1,"pid":"10751","parameters":{}}},"Rc-ChosseFile":{"plugin_info":{"name":"Android文件选择器","description":"调用Android文件选择器,返回正确的文件路径","platforms":"Android","url":"https://ext.dcloud.net.cn/plugin?id=4043","android_package_name":"com.xiuyu.tingnaoai","ios_bundle_id":"com.xiuyu.tingnaoai","isCloud":true,"bought":1,"pid":"4043","parameters":{}}},"Xty-StoreKit":{"plugin_info":{"name":"StoreKit","description":"Appstore 评分","platforms":"iOS","url":"https://ext.dcloud.net.cn/plugin?id=107","android_pa

  • DCloud_UNI_yuhe

    看着这个没看出啥来,你可以去试试上面的 demo

    2025-10-21 11:10

  • o***@aihuayan.com (作者)

    回复 DCloud_UNI_yuhe: 好的,我先尝试看看,还是不行的话再提供个demo帮忙定位下,感

    谢!

    2025-10-21 11:22

  • DCloud_UNI_yuhe

    回复 o***@aihuayan.com: 好的

    2025-10-21 11:24

要回复问题请先登录注册