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