Error "java.lang.NoClassDefFoundError: com.google.repacked.apache.commons.io.FileUtils"

There is an Android application in its build.gradle application:

dependencies {
    ...
    compile 'commons-io:commons-io:2.4'
}

Building and installing the application does not cause problems. However, the following code:

FileUtils.writeStringToFile(fText, "Test");

raises the following exception:

java.lang.NoClassDefFoundError: com.google.repacked.apache.commons.io.FileUtils

Can anyone suggest a tip on how to fix this?

[Edit:]

I just realized that an application can still be created without the following in build.gradle:

dependencies {
    ...
    compile 'commons-io:commons-io:2.4'
}

FileUtils: enter image description here

Can anyone say what com.google.repacked is and how to get rid of it?

+4
source share
1 answer

, , FileUtils lib. , , FileUtils.

, org.apache... FileUtils, - com.google...

+1

All Articles