Reputation: 735
I am currently attempting to get Cocos2d-x 2.2.2 working on my Windows machine. I am trying to upload the HelloCpp sample project to my Galaxy S4 through Eclipse. I am getting the follow error from logcat:
[2014-01-22 16:29:24 - HelloCpp] (skipping file '.gitignore' due to ANDROID_AAPT_IGNORE pattern '.*') [2014-01-22 16:29:24 - HelloCpp] Unable to add 'K:\Cocos2d\cocos2d-x-2.2.2\samples\Cpp\HelloCpp\proj.android\assets\app.icf': Zip add failed [2014-01-22 16:29:24 - HelloCpp] ERROR: unable to process assets while packaging 'K:\Cocos2d\cocos2d-x-2.2.2\samples\Cpp\HelloCpp\proj.android\bin\resources.ap_' [2014-01-22 16:29:24 - HelloCpp] ERROR: packaging of 'K:\Cocos2d\cocos2d-x-2.2.2\samples\Cpp\HelloCpp\proj.android\bin\resources.ap_' failed
I have seen similar errors where the space in Marker Felt is the cause but the solution to that doesnt apply here as there is no space in app.icf.
Why is this error occuring and how could i fix it? Thank you in advance.
Upvotes: 0
Views: 1230
Reputation: 8896
Most of time this(resources.ap_)
problem occur when there is permission problem
i.e. it has no permission to access
the file. You have to take administrator permission
of the drive where your project exist.
You can check when you try to see the any image in the asset folder then it say invalid photo
or it will not opened and say permission denied
Upvotes: 1