An Android app has the following in its build.gradle:
dependencies {
...
compile 'commons-io:commons-io:2.4'
}
Building and installing the app has no problem. However the following code:
FileUtils.writeStringToFile(fText, "Test");
causes the the following exception:
java.lang.NoClassDefFoundError: com.google.repacked.apache.commons.io.FileUtils
Could anyone offer a tip on how to remedy this?
[Edit:]
I have just realized the app can still be built without the following in build.gradle:
dependencies {
...
compile 'commons-io:commons-io:2.4'
}
Could anyone tell what com.google.repacked is and how to get rid of it?