Android libpng错误:无法处理PNG图像-maven插件

Android libpng错误:无法处理PNG图像-maven插件,android,maven,m2e,aapt,Android,Maven,M2e,Aapt,使用AndroidMaven插件编译我的项目时出现以下png错误。带有android-m2e的Eclipse编译和部署在我的平板电脑上没有问题。这是aapt命令和libpng的问题吗 [INFO] /Users/foo/android-sdk-macosx/platform-tools/aapt [package, -f, -M, /Users/foo/source/app/abc-android/AndroidManifest.xml, -S, /Users/foo/source/app/a

使用AndroidMaven插件编译我的项目时出现以下png错误。带有android-m2e的Eclipse编译和部署在我的平板电脑上没有问题。这是aapt命令和libpng的问题吗

[INFO] /Users/foo/android-sdk-macosx/platform-tools/aapt [package, -f, -M, 
/Users/foo/source/app/abc-android/AndroidManifest.xml, -S, /Users/foo/source/app/abc-
android/res, -S, /Users/foo/source/app/abc-
android/target/unpack/apklibs/com.abc.aws.android_aws_apklib_1.0/res, --auto-add-overlay, 
-A, /Users/foo/source/app/abc-android/target/generated-sources/combined-assets/assets, -I, 
/Users/foo/android-sdk-macosx/platforms/android-15/android.jar, -F, 
/Users/foo/source/app/abc-android/target/abc-android-0.1-SNAPSHOT.ap_, --debug-mode]
[INFO] libpng error: Not a PNG file
[INFO] ERROR: Failure processing PNG image /Users/foo/source/app/abc-android/res/drawable-hdpi/login_full_screen.png
[INFO] /Users/foo/source/app/abc-android/res/layout/achievement_grid_item.xml:7: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/achievement_3_in_arow').
[INFO] /Users/foo/source/app/abc-android/res/layout/achievement_grid_item_post_class.xml:6: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/achievement_3_in_arow').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:8: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/distance_bg').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:89: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/cadence_bg').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:168: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/heat_arrow_narrow_full_both').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:198: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/avg_max_separator').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:231: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/power_bg').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:318: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/total_effort_bg').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:350: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/heat_arrow_wide_full_both').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:380: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/avg_max_separator').
[INFO] /Users/foo/source/app/abc-android/res/layout/ant_fragment.xml:415: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/resistance_bg').

在MS Paint中打开png文件,并将其重新保存为png文件。它将png转换为32位格式。由于Android同时支持24位和32位png,这让我觉得Android不喜欢使用Adobe Photoshop生成的png

参考: