gpt4 book ai didi

android - Ionic 默认选项卡模板中的外部图像不会加载到模拟器和设备上

转载 作者:太空狗 更新时间:2023-10-29 15:45:44 27 4
gpt4 key购买 nike

Ionic 中的选项卡应用程序模板包含一些外部图像,当我在我的 Android 模拟器或 Nexus 5 中打开应用程序时它们不会加载。设备和模拟器都有互联网连接,我可以加载这些在浏览器中手动显示图像。

它在浏览器中工作正常( ionic 服务)。

即:

ionic start myApp tabs
cd myApp
ionic serve # OK
ionic platform add android
ionic build android
ionic emulate android # Images are not loaded
ionic run android # Images are not loaded

ionic 发球:

http://content.screencast.com/users/yuri_l/folders/Jing/media/e95e5f91-c732-414a-9ba5-adaf8a726dd5/00000064.png

安卓模拟器(Nexus 5):

http://content.screencast.com/users/yuri_l/folders/Jing/media/a515d587-0eea-4978-809d-b800899aa9f9/00000065.png

ionic 1.3.22 Cordova 5.0.0

我错过了什么?

最佳答案

解决方法如下:

ionic plugin add cordova-plugin-whitelist

没有它,外部资源将无法加载。

关于android - Ionic 默认选项卡模板中的外部图像不会加载到模拟器和设备上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30107751/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com