f***@163.com
f***@163.com
  • 发布:2019-06-30 21:26
  • 更新:2019-07-25 15:20
  • 阅读:1137

【报Bug】Android编译运行后无相应(虚拟机和真机)

分类:uni-app

详细问题描述

(DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题)

[内容]
H5编译运行无误,android编译在虚拟机和真机上运行后白屏,没有任何结果

重现步骤

[步骤]

[结果]
20:57:48.302 DONE Build complete. Watching for changes...
20:57:48.303 项目 'projectData' 编译成功.
20:57:48.504 正在建立手机连接...
20:57:48.964 正在安装手机端HBuilder调试基座...
20:57:53.751 Success
20:57:53.898 9261 KB/s (36606753 bytes in 3.860s)
20:57:54.023 正在同步手机端程序文件...
20:57:56.745 同步手机端程序文件完成
20:57:56.786 正在启动HBuilder调试基座...
20:58:00.675 如手机上HBuilder调试基座未启动,请手动启动...
20:58:08.371 App Launch at App.vue:4
20:58:08.392 App Show at App.vue:7
20:58:08.789 58:07.462 22302 22325 E console : [ERROR] reportJSException >>>> exception function:createInstance, exception:Exception: TypeError: undefined is not an object (evaluating 'window.FormData')
20:58:08.810 58:07.462 22302 22325 E console : ./node_modules/form-data/lib/browser.js@(global function):37286:66
20:58:08.831 58:07.462 22302 22325 E console : webpack_require__@(global function):3212:35
20:58:08.852 58:07.462 22302 22325 E console : ./node_modules/request/request.js@(global function):57764:35
20:58:08.873 58:07.462 22302 22325 E console :
webpack_require@(global function):3212:35
20:58:08.894 58:07.462 22302 22325 E console : ./node_modules/request/index.js@(global function):56309:38
20:58:08.915 58:07.462 22302 22325 E console : __webpack_require
@(global function):3212:35
20:58:08.936 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\node_modules\tencentcloud-sdk-nodejs\tencentcloud\common\http\http_connection.js@(global function):166265:703
20:58:08.957 58:07.462 22302 22325 E console : webpack_require@(global function):3212:35
20:58:08.978 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\node_modules\tencentcloud-sdk-nodejs\tencentcloud\common\abstract_client.js@(global function):165960:41
20:58:08.999 58:07.462 22302 22325 E console :
webpack_require
@(global function):3212:35
20:58:09.020 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\node_modules\tencentcloud-sdk-nodejs\tencentcloud\aai\v20180522\aai_client.js@(global function):93456:41
20:58:09.041 58:07.462 22302 22325 E console : webpack_require__@(global function):3212:35
20:58:09.062 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\node_modules\tencentcloud-sdk-nodejs\tencentcloud\aai\v20180522\index.js@(global function):93538:30
20:58:09.083 58:07.462 22302 22325 E console :
webpack_require@(global function):3212:35
20:58:09.104 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\node_modules\tencentcloud-sdk-nodejs\tencentcloud\aai\index.js@(global function):93427:33
20:58:09.124 58:07.462 22302 22325 E console : __webpack_require
@(global function):3212:35
20:58:09.145 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\node_modules\tencentcloud-sdk-nodejs\tencentcloud\index.js@(global function):203138:27
20:58:09.166 58:07.462 22302 22325 E console : webpack_require__@(global function):3212:35
20:58:09.187 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\node_modules\tencentcloud-sdk-nodejs\index.js@(global function):93413:39
20:58:09.208 58:07.462 22302 22325 E console :
webpack_require@(global function):3212:35
20:58:09.229 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\common\tengxAI.js@(global function):78032:39
20:58:09.250 58:07.462 22302 22325 E console :
webpack_require@(global function):3212:35
20:58:09.271 58:07.462 22302 22325 E console : (global function):334509:31
20:58:09.293 58:07.462 22302 22325 E console : ./node_modules/babel-loader/lib/index.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib/index.js?!D:\Source\Uniapp\project\projectData\pages\oper_user\addUser\addUser.vue?vue&type=script&lang=js&@(global function):334762:34
20:58:09.312 58:07.462 22302 22325 E console : __webpack_require
@(global function):3212:35
20:58:09.333 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\pages\oper_user\addUser\addUser.vue?vue&type=script&lang=js&@(global function):334836:541
20:58:09.354 58:07.462 22302 22325 E console : webpack_require__@(global function):3212:35
20:58:09.375 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\pages\oper_user\addUser\addUser.vue@(global function):334799:114
20:58:09.396 58:07.462 22302 22325 E console :
webpack_require@(global function):3212:35
20:58:09.417 58:07.462 22302 22325 E console : (global function):93229:58
20:58:09.438 58:07.462 22302 22325 E console : D:\Source\Uniapp\project\projectData\main.js?{"page":"pages%2Foper_user%2FaddUser%2FaddUser"}@(global function):93231:34
20:58:09.459 58:07.462 22302 22325 E console : __webpack_require
@(global function):3212:35
20:58:09.480 58:07.462 22302 22325 E console : checkDeferredModules@(global function):3169:45
20:58:09.501 58:07.462 22302 22325 E console : (global function):334475:61
20:58:09.522 58:07.462 22302 22325 E console : require@(global function):8:664043
20:58:09.543 58:07.462 22302 22325 E console : (global function):334863:8
20:58:09.564 58:07.462 22302 22325 E console : anonymous@(global function):338915:7
20:58:09.585 58:07.462 22302 22325 E console : (weex framework):1:41537
20:58:09.606 58:07.462 22302 22325 E console : createInstance@(weex framework):1:41548
20:58:09.627 58:07.462 22302 22325 E console : (weex framework):1:178111
20:58:09.648 58:07.462 22302 22325 E console :
20:58:09.669 58:07.462 22302 22325 E console : getTemplateInfo== template md5 null ,httpHeader:{}
21:07:03.488 已停止运行...
[期望]

[如果语言难以表述清晰,拍一个视频或截图,有图有真相]

IDE运行环境说明

[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]

[IDE版本号]
2.0.1.20190614

[windows版本号]
Windows 专业版

[mac版本号]

uni-app运行环境说明

[运行端是h5或app或某个小程序?]
app + H5

[运行端版本号]

[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
HBuilderX创建

[编译模式是老模板模式还是新的自定义组件模式?]
自定义组件模式

App运行环境说明

[Android版本号]
Android P

[iOS版本号]

[手机型号]
sony xzp

[模拟器型号]
虚拟机 pixe xl

附件

[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]

[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]

[App安装包或H5地址]

[可重现代码片段]

联系方式

[QQ]

2019-06-30 21:26 负责人:无 分享
已邀请:
a***@qq.com

a***@qq.com

打印一下报错的字段看看。
我的之前也这样,后来打印出来之后发现这个字段的类型在热重载的时候变了,那就加一段专门处理的代码就行了。

该问题目前已经被锁定, 无法添加新回复