diff --git a/README.issue.md b/README.issue.md new file mode 100644 index 0000000..893b284 --- /dev/null +++ b/README.issue.md @@ -0,0 +1,20 @@ +# issue + +## app 打包成apk运行,页面空白 + +- `pnpm build:app` +- **注意,app运行完后不支持本地跑,就是说HBuildX打开生成的app文件夹也跑不了** +- 需要配置 `manifest.json`,有3个地方需要填,如下图 + ![app打包](./screenshots/build-app.png) +- 然后打开HBuildX--发行--原生APP云打包,然后出现如下图,按图填写即可。 + ![app打包](./screenshots/build-app2.png) +- 打包成功如下图 + ![app打包成功](./screenshots/build-app-success.png) +- 生成的apk路径 + ![app打包成功路径](./screenshots/build-app-success2.png) +- 运行报错如下图 + ![apk运行报错](./screenshots/run-app-error.png) +- 官方链接:[https://ask.dcloud.net.cn/article/35627](https://ask.dcloud.net.cn/article/35627) +- 安装历史版本的HBuildX: [https://hx.dcloud.net.cn/Tutorial/HistoryVersion](https://hx.dcloud.net.cn/Tutorial/HistoryVersion),然后在百度云盘里面下载,下载HBuildX3.8.12的(因为本地的cli对应的HBuildX版本为3.8.12) +- 使用刚下载的旧版HBuildX云打包,一切顺利,但是最终打包的apk在手机安装后,运行出来的是白屏!(除了tabbar啥都么有,郁闷,PS:tabbar可以切换,但是都是空白页面) + ![APP运行页面空白](./screenshots/run-app-error2.png) diff --git a/screenshots/build-app-success.png b/screenshots/build-app-success.png new file mode 100644 index 0000000..53adcbf Binary files /dev/null and b/screenshots/build-app-success.png differ diff --git a/screenshots/build-app-success2.png b/screenshots/build-app-success2.png new file mode 100644 index 0000000..a02d52b Binary files /dev/null and b/screenshots/build-app-success2.png differ diff --git a/screenshots/build-app.png b/screenshots/build-app.png new file mode 100644 index 0000000..0defa9e Binary files /dev/null and b/screenshots/build-app.png differ diff --git a/screenshots/build-app2.png b/screenshots/build-app2.png new file mode 100644 index 0000000..629df63 Binary files /dev/null and b/screenshots/build-app2.png differ diff --git a/screenshots/run-app-error.png b/screenshots/run-app-error.png new file mode 100644 index 0000000..70e8c13 Binary files /dev/null and b/screenshots/run-app-error.png differ diff --git a/screenshots/run-app-error2.png b/screenshots/run-app-error2.png new file mode 100644 index 0000000..1a69398 Binary files /dev/null and b/screenshots/run-app-error2.png differ