I copied the commons-io-2.6.jr into libs folder, and I've decompressed it. But the icon shows classes were locked. The FileUtils class can not be used.
Asked
Active
Viewed 344 times
0
Mateusz
- 5,714
- 1
- 23
- 29
-
that is no the way you use the libraries in Java – Vladyslav Matviienko Aug 20 '18 at 08:36
1 Answers
0
You don't need to decompress the jar file to use it.
Instead of using the jar, you can import the commons-io library through Gradle.
Add this line in your app's build.gradle file:
dependencies {
implementation 'commons-io:commons-io:2.6'
// other libs...
}
If you really want to use the jar file, you can import your libs folder through Gradle as explained here.
Clyky
- 207
- 2
- 13