gpt4 book ai didi

android - ionic 框架 : 'ionic resources' generating empty directories with no icon and splash images

转载 作者:行者123 更新时间:2023-11-29 15:07:10 25 4
gpt4 key购买 nike

我正在使用 ionic 框架版本 1.7.14 创建一个 android 应用程序。我正在尝试按照提到的步骤生成图标和启动画面 here .

我在项目的根目录下创建了一个“resources”目录,并在其中添加了 2 个图像:icon.png (192x192) 和 splash.png (2208x2208)。现在当我运行时

$ ionic resources

它在资源中生成目录“android”,其中包含子目录“icon”和“splash”。但是,没有生成图像。所有目录都是空的,在构建项目时出现以下错误:

Android project created with cordova-android@5.1.1
cp: no such file or directory: /myprojects/testApp/resources/android/icon/drawable-ldpi-icon.png

cp: no such file or directory: /myprojects/testApp/resources/android/icon/drawable-mdpi-icon.png

cp: no such file or directory: /myprojects/testApp/resources/android/icon/drawable-hdpi-icon.png

cp: no such file or directory: /myprojects/testApp/resources/android/icon/drawable-xhdpi-icon.png

cp: no such file or directory: /myprojects/testApp/resources/android/icon/drawable-xxhdpi-icon.png

cp: no such file or directory: /myprojects/testApp/resources/android/icon/drawable-xxxhdpi-icon.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-land-ldpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-land-mdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-land-hdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-land-xhdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-land-xxhdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-land-xxxhdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-port-ldpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-port-mdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-port-hdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-port-xhdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-port-xxhdpi-screen.png

cp: no such file or directory: /myprojects/testApp/resources/android/splash/drawable-port-xxxhdpi-screen.png

最佳答案

ionic cordova 资源 依赖于 ionic 服务器,并且可能由于网络问题或 ionic 服务器问题而失败。只需确认图标和启动文件已放入 PROJECT_FOLDER/resources 中,然后重试。希望这会对您有所帮助,如果没有,也许您可​​以重新安装 ionic。

关于android - ionic 框架 : 'ionic resources' generating empty directories with no icon and splash images,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35969411/

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