I am trying to utilize the Zip Expansion library from Google in my app, but I cannot seem to import the libraries correctly.
Right now, in my code, to test the library, I am using :
ZipResourceFile expansionFile = new ZipResourceFile();
This is throwing errors because I have not imported the expansion library correctly.
From scratch, could someone tell me how to use this library in my project?
Thanks so much.
In Eclipse, import the ‘zip_file’ project (using ‘copy projects into workspace’ option). Add a reference to this project under your project properties, then add the project to your Java Build Path. Add the namespace to your code file:
Using
ZipResourceFileshould not throw any errors at this point. You should also mark this dependency as an Android library under your project properties so that it will be managed properly when building.