简体   繁体   中英

Ionic app showing blank screen on opening

I have made an ionic app. I have successfully build the apk and installed the app on my phone. However when I opened the app, it showed a blank screen. So I decided to debug the app in chrome on my laptop. I am getting the errors as shown in the image. Does anyone has any idea about it?

ionic - 5.4.4
cordova - 6.4.0
gradle - 5.6.1

在此处输入图片说明

runtime-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
cordova.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
vendor-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
main-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
polyfills-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
styles-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
cordova_plugins.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
/assets/icon/favicon.png:1 Failed to load resource: net::ERR_FILE_NOT_FOUND

我通过将 index.html 中的 base href 从 / 更改为 ./ 来解决此问题

  <base href="./" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM