Cocos2d: Get data from file(image.png) failed!

Source: Internet
Author: User

1. Preface today started the Cocos2d-x2.2 project, after building success, met "Cocos2d: Get data from file(image.png) failed !" Error. There was no problem before. I checked it again and confirmed that the file name is correct. The file exists and is not damaged or the format is incorrect. (The program cannot display the png Image Format given by Art)
2. Change the import method of resource images to Create groups for any added folders ~


It turns out that the resource file directory of the great god is blue.

So I also changed to the second method to import resource images.


I don't know why there is a problem with this method. However, this method adds or deletes images and updates the project. images like this cannot be stored in the disk directory.

Related Article

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.