Modifying contents of Android .aar file / Converting to and from .zip format : <p>So I have a .aar file which has a file I need to remove from inside it. </p>

<p>I am running on mac and changed the extention from .aar to .zip and unzipped the zip file. I then removed the file from the folder, recompressed it back into a .zip and then tried changing the extension from .zip back to .aar. </p>

<p>The problem is that the now modified .aar is not recognized as a .aar file. It is still being registered as a .zip and I can no longer use it in my project. </p>

<p>So my question is two fold: </p>

<p>1) How can one easily modify the contents of a .aar file and 
2) How do you properly convert to/from .aar and .zip? </p>
