User42590
User42590

Reputation: 2531

IOUtils Exception Android

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);

Upvotes: 0

Views: 3017

Answers (1)

Gopinath
Gopinath

Reputation: 13051

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'

Upvotes: 1

Related Questions