0

I am implementing Expansion Files . I use technique to read zip files from this answer. Every thing fine the only error i am getting is on IOUtils. Which says IOUtils cannot be resolved. My project api level is 3.0 and above.

Here is the lline :

 **IOUtils**.copy(inputStream, outputStream);
Community
  • 1
  • 1
User42590
  • 2,473
  • 12
  • 44
  • 85

1 Answers1

1

IOUtils class is available as Apache Commons library. Probably you need to download the jar and put it inside the libs directory before you can use it.

Or add the following line to your build.gradle and sync your project.

compile 'commons-io:commons-io:2.5'
Gopinath
  • 12,981
  • 6
  • 36
  • 50
  • 1
    Quick googling gives the link. http://apache.techartifact.com/mirror//commons/io/binaries/commons-io-2.4-bin.zip – Gopinath Feb 08 '13 at 09:42
  • @Gopinath, that link gives a 404. Perhaps a link to maven central or a maven definition would be more appropriate? – JJ Zabkar May 15 '13 at 22:37