Android studio ERROR: Unable to open PNG file, androidunable

Source: Internet
Author: User

Android studio ERROR: Unable to open PNG file, androidunable
ERROR: Unable to open PNG file; Error Code: 42

I recently used android stuidio to build a gradle project and reported an error during running.Error Code 42;ERROR: Unable to open PNG file:

Check related materials,The path is too long or the path name contains Chinese characters or spaces.

If you know the cause, the file header can be resolved. If you want to view the detailed error information, you can see the following

Error:Execution failed for task ':samples:mergeDebugResources'.> Error: Failed to run command:    D:\Program\android2\adt-bundle-windows-x86_64-20140702\sdk\build-tools\21.1.2\aapt.exe s -i D:\android\study_work\shanxing menu\xcb-shanxing menu\CircularFloatingActionMenu-master\CircularFloatingActionMenu-master\samples\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-ldrtl-xxhdpi\abc_ic_ab_back_mtrl_am_alpha.png -o D:\android\study_work\shanxing menu\xcb-shanxing menu\CircularFloatingActionMenu-master\CircularFloatingActionMenu-master\samples\build\intermediates\res\debug\drawable-ldrtl-xxhdpi-v17\abc_ic_ab_back_mtrl_am_alpha.pngError Code:    42Output:    D:\android\study_work\shanxing menu\xcb-shanxing menu\CircularFloatingActionMenu-master\CircularFloatingActionMenu-master\samples\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-ldrtl-xxhdpi\abc_ic_ab_back_mtrl_am_alpha.png ERROR: Unable to open PNG file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.