错误:构建离子时,android图标png不存在源路径

栏目: Android · 发布时间: 6年前

内容简介:翻译自:https://stackoverflow.com/questions/42100060/error-source-path-does-not-exist-for-android-icon-png-when-building-for-ionic
Your system information:

Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
OS: macOS Sierra
Node Version: v6.9.5
Xcode version: Xcode 8.2.1 Build version 8C1002

我正在尝试使用离子平台添加android来创建一个android项目,但它总是抱怨资源/ android / icon / drawable-hdpi-icon.png不存在.事实上它没有 – 这些资源都不存在.他们可以通过离子资源创造.

但是,如果我尝试在没有平台的情况下运行离子资源,我会被告知首先添加平台.这导致我基本上做了类似的事情:

ionic platform add android
ionic resources
ionic platform rm android
ionic platform add android

然后它正常工作.在添加平台之前,我可以做些什么来确保资源得到正确构建或引用?

对我来说,在config.xml中,路径在标记中有反斜杠,从以下位置更改:

<icon src="resources\android\icon\drawable-xhdpi-icon.png" />

至:

<icon src="resources/android/icon/drawable-xhdpi-icon.png" />

翻译自:https://stackoverflow.com/questions/42100060/error-source-path-does-not-exist-for-android-icon-png-when-building-for-ionic


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Programming Rust

Programming Rust

Jim Blandy / O'Reilly Media / 2016-8-25 / GBP 47.99

This practical book introduces systems programmers to Rust, the new and cutting-edge language that’s still in the experimental/lab stage. You’ll learn how Rust offers the rare and valuable combination......一起来看看 《Programming Rust》 这本书的介绍吧!

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具