Android Build APK package appears unable to add "XXX" Zip Add failed problem

Source: Internet
Author: User

Recently tried to integrate Umeng to Cocos2d-x go project, all good work, ready to build apk when there are a lot of packets

[2014-06-03 20:02:52-myapp]       Unable to add ' G:\cocos2d-x-2.2.3\projects\MyApp\proj.android\assets\crystal_guardian\background.jpg ': Zip add failed[2014-06-03 20:02:52-myapp] error:unable to process assets while packaging ' G:\COCOS2D-X-2.2.3\PROJECTS\MYAPP\PR Oj.android\bin\resources.ap_ '

Such a mistake, the internet is very much said to be a permission error. But I have to change the relevant file permissions to complete control also can not solve, and then according to the following methods to overcome the problem:

Find the build_native.sh under Proj.android in the project

Open and change

60 lines of -RF instead -RFP

64 lines after the CP plus - P

That is, after the change

If [-D "$file"]; Then    cp-rfp "$file" "$APP _android_root"/assetsfiif [-F "$file"], then    cp-p "$file" "$APP _android_root"/asse Tsfi


Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

Android Build APK package appears unable to add "XXX" Zip Add failed problem

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.