【问题标题】:Eclipse to Android Studio importing errorEclipse 到 Android Studio 导入错误
【发布时间】:2016-04-29 00:30:09
【问题描述】:

导入项目时出现以下错误:

 AAPT err(Facade for 3882930): libpng error: Read Error

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ProjectName:mergeDebugResources'.
> Some file crunching failed, see logs for details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

我尝试清理、重建并重新启动工作室以及我的 PC,但没有运气。谁能帮帮我?

【问题讨论】:

  • 发布完整的 logcat @Parth Anjaria
  • 这可能对你有帮助:stackoverflow.com/questions/29026024/…
  • @AmitVaghela 这是完整的相关日志
  • @YogeshPatel 我试图清理项目。我已经在使用 1.5 gradle 来构建。所以该网站没有帮助,谢谢
  • 你能检查一下你的项目目录吗,如果存在一些未使用的文件,请尝试删除它们。您的 res 文件夹中可能应该有一些未使用的东西。我在出现 9 个补丁图像时遇到了它。

标签: android android-studio importerror libpng


【解决方案1】:

终于有答案了,

我将所有图像粘贴到https://tinypng.com/ 并下载优化后的图像。将它们放在各自的位置,瞧,错误消失了。

我猜图像已经损坏,因为这是我尝试导入的 1 年前的项目。

【讨论】:

  • 我猜对了,确实是您的 res 文件的问题...很高兴您解决了...
猜你喜欢
  • 2015-05-24
  • 2017-09-27
  • 1970-01-01
  • 2013-05-12
  • 2015-09-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-01-12
相关资源
最近更新 更多