[Android]libpng error: Not a PNG file错误解决

我在将以前在Eclipse中写的项目import到android studio中后,出现了

AAPT err(Facade for 157667509): libpng error: Not a PNG file

错误,提示信息显示图片非PNG格式。

解决方法:

在studio中依次点开每个后缀名为png的图片,(如图)

即使图片的后缀名是png,这里会显示真正的格式。找到不符合要求的图片,另存为png格式即可。

时间: 2024-08-27 02:13:07

[Android]libpng error: Not a PNG file错误解决的相关文章

AAPT err(Facade for): libpng error: Not a PNG file 错误解决

在导入项目到Android studio后,若编译出现"AAPT err(Facade for): libpng error: Not a PNG file"错误. 该错误表示项目中的drawable下的图片文件有非png图片,命名为了png造成的. 解决方案: 方案一.在模块下的build.gradle中配置下面两个信息,再clear project. aaptOptions.cruncherEnabled = false      aaptOptions.useNewCrunche

AAPT: libpng error: Not a PNG file 问题解决

导入项目到Android Studio的时候,Gradle Build失败了,报的错是 FAILURE: Build failed with an exception. Execution failed for task ':app:mergeDebugResources'.> Some file crunching failed, see logs for details AAPT: libpng error: Not a PNG file AAPT err(Facade for 197782

pngcrush caught libpng error: Not a PNG file..

今日真机测试遇到这样的奇葩问题: While reading XXX/XXX.png pngcrush caught libpng error: Not a PNG file.. 替换几次图片都没解决,搜了一下发现是队友问题,狠狠地将其批了一顿,竟然直接在图片后面改后缀,真是醉了!--------让美工重新导入 PS之后再导出 png 格式就好了.

While reading xxx.png pngcrush caught libpng error: Not a PNG file..

While reading /XXX/XXX/XXX/img1.png pngcrush caught libpng error: Not a PNG filCould not find file: /Users/XXX/Library/Developer/Xcode/DerivedData/CookBookDemo-cnttcobrbmvbddeiesgsxnfwihfe/Build/Products/Debug-iphoneos/CookBookDemo.app/img1.pngComman

Out of resources when opening file 错误解决

mysqldump: Got error: 23: Out of resources when opening file './mydb/tax_calculation_rate_title.MYD' (Errcode: 24) when using LOCK TABLES 看到这个后,我比较奇怪,备份时锁定表却出错,关键是这个数据库现在也没被使用啊 后来到网上查查找到了原因 在mysql配置文件 my.cnf 中 找到 open_files_limit 增加它的值就行了 我的原来是 open_

ERROR: Error fetching remote repo 'origin' 错误解决

千万不要慌张,认真看控制台输出 ERROR: Error fetching remote repo 'origin'...... Caused by: hudson.plugins.git.GitException: Command "git config remote.origin.url http://aaaaaaaaaaaaaaa.git" returned status code 255: stdout: stderr: error: could not lock config

Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法

Eclipse 出现Some sites could not be found.  See the error log for more detail.错误 解决方法 Some sites could not be found.  See the error log for more detail.这话的意思是在设置的update的sites有问题,问题是无法发现或找到该site.这是因为我们在使用eclipse的help-->install new software的时候,添加安装路径有时会发

Linux中error while loading shared libraries错误解决办法

Linux中error while loading shared libraries错误解决办法 默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件,通常通过源码包进行安装时,如果不指定--prefix,会将库安装在/usr/local/lib目录下:当运行程序需要链接动态库时,提示找不到相关的.so库,会报错.也就是说,/usr/local/lib目录不在系统默认的库搜索目录中,需要将目录加进去. 1.首先打开 /etc/ld.so.conf 文件 2.加入动态库文件所在

Andriod Studio 出现An error has occurred.See the log file错误解决

出现错误提示去查看日志文件,然后我到C:\Users\PC\AppData\Local\Android\Sdk\tools\lib\monitor-x86_64\configuration后打开日志文件发现错误信息是 java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and start