[英]Error occurs when building .apk file with ionic
building the Android app produces the following error 构建Android应用会产生以下错误
Error: Source path does not exist: resources\\android\\icon\\drawable-hdpi-icon.png 错误:源路径不存在:resources \\ android \\ icon \\ drawable-hdpi-icon.png
[ERROR] An error occurred while running cordova build android (exit code 1). [错误]运行cordova build android(退出代码1)时发生错误。
What is your cordova and ionic-cli versions? 您的cordova和ionic-cli版本是什么?
you can try 你可以试试
npm i -g ionic@latest
//or
ionic cordova resources -f //should recreate the necessary resources.
and you are edit your config.xml files.
so you can try
ionic cordova platform add android
所以你可以尝试ionic cordova platform add android
Again, what is your cordova and ionic-cli versions? 同样,您的cordova和ionic-cli版本是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.