Cordova报错:libpng error: Not a PNG file
来源:互联网 发布:雷曼兄弟 知乎 编辑:程序博客网 时间:2024/05/29 11:00
想更换启动图像
<splash src="res/screen.png" />
cordova run android
或cordova build
后生成如下
res\drawable-mdpi\screen.png
把platforms\android\res\drablw-*\
全删除,复制res\drawable-mdpi\
到platforms\android\res\
,最后运行cordova run android
报错如下
发现
不管<splash src="res/*.*" />
图片名如何后缀如何,都会生成固定的res/drawable-*/screen.png
,后缀变了!!!问题就出现在这里。
所以
如果res/*.*"
的后缀不是.png
,则需要把生成的res/drawable-*/screen.png
的后缀改成res/*.*
的后缀;
如果res/*.png
原来的后缀不是.png
,也会报错,如果真需要把非.png
后缀改成.png
后缀需要使用工具,Windows自带的图片编辑工具亲测不行,PS可以。
0 0
- Cordova报错:libpng error: Not a PNG file
- AndroidStudio报错AAPT: libpng error: Not a PNG file
- libpng error: Not a PNG file
- libpng error: Not a PNG file
- libpng error: Not a PNG file
- BUG:libpng error: Not a PNG file
- libpng error: Not a PNG file 问题解决
- Android Studio中运行报错:libpng error: Not a PNG file的解决方法
- Android studio报 AAPT err(Facade for): libpng error: Not a PNG file 错误
- Android 关于 libpng error: Not a PNG file 的错误
- 怎么解决libpng error not a png file错误
- libpng error: Not a PNG file we问题解决
- 怎么解决libpng error not a png file错误
- android studio 图片错误 libpng error: Not a PNG file
- AAPT err(Facade for ): libpng error: Not a PNG file
- Android libpng error: Not a PNG file错误解决
- app:mergeDebugResources libpng error Not a PNG file解决方法
- [Android]libpng error: Not a PNG file错误解决
- Mysql分区表使用的一些限制和需要注意的地方
- js使用正则表达式验证身份证格式
- Ubuntu安装jdk并设置环境变量
- JSP
- windows下搭建基于nginx的rtmp服务器
- Cordova报错:libpng error: Not a PNG file
- 邮件:事务失败。 服务器响应为:DT:SPM 163 smtp
- 【JAVA秒会技术之玩转SQL】MySQL优化技术(一)
- 大结果集分页
- 1065. 单身狗(25)
- 一步一步教你使用uCOS-II
- 算法 矩阵连乘 递归+动态规划+备忘录
- 一、servlet生命周期和三种实现方式,get和post请求区别
- 【CS231n winter2016 Lecture 7 (Convolutional Neural Network)】