Android的工作室0.5.9错误code 42 [英] Android Studio 0.5.9 error code 42

查看:184
本文介绍了Android的工作室0.5.9错误code 42的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试从Eclipse导入一个项目,我收到这样的错误

 错误:执行失败的任务:应用程序:mergeDebugResources。


  

错误:无法运行命令:
      D:\\ Android的\\ SDK \\构建工具\\ 19.1.0 \\ aapt.exe小号-i C:\\项目\\ ZwallU \\程序\\ SRC \\主\\水库\\绘制,华电国际\\ filgoal.png -o C:\\项目\\ ZwallU \\程序\\建立\\水库\\所有\\调试\\绘,华电国际\\ filgoal.png
  错误code:
      42
  输出:
      libpng的错误:没有一个PNG文件


有与日食该文件时没有错..任何人有这个错误的解决方案?


解决方案

我觉得你有该文件的问题filgoal.png ...


  

C:\\项目\\ ZwallU \\程序\\建立\\水库\\所有\\调试\\绘,华电国际\\ filgoal.png
  错误code:42输出:libpng的错误:没有一个PNG文件


用编辑器打开它,并保存为PNG选择。
也许,该文件是在这样一个JPEG另一种格式。

Everytime I try to import a project from eclipse I receive Error like that

Error:Execution failed for task ':app:mergeDebugResources'.

Error: Failed to run command: D:\Android\sdk\build-tools\19.1.0\aapt.exe s -i C:\projects\ZwallU\app\src\main\res\drawable-hdpi\filgoal.png -o C:\projects\ZwallU\app\build\res\all\debug\drawable-hdpi\filgoal.png Error Code: 42 Output: libpng error: Not a PNG file

there's nothing wrong when working with this file on eclipse .. anyone has a solution for this error ?

解决方案

I think that you have a problem with the file filgoal.png...

C:\projects\ZwallU\app\build\res\all\debug\drawable-hdpi\filgoal.png Error Code: 42 Output: libpng error: Not a PNG file

Open it with a editor and save as with PNG selected. Maybe, the file is in a another format like JPEG.

这篇关于Android的工作室0.5.9错误code 42的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆