1

I can't generated signed bundle / apk in Android Studio. When I cliked on it, I have this error : File 'root/lib/commons-io-2.4.jar' uses reserved file or directory name 'lib'.

Like this post : Android Studio3.2 APK Build Error -> reserved file or directory name 'lib' , I try to put in my gradle file :

implementation 'org.apache.directory.studio:org.apache.commons.io:2.4'

but it doens't work.

Any help would be appreciated!

Gourav
  • 2,746
  • 5
  • 28
  • 45
Luzwitz
  • 197
  • 1
  • 3
  • 11
  • try to replace `api` with `implimentation` – Hanzala Jan 01 '19 at 11:31
  • This is a strange maven coords for apache commons io. Why not use the official release: `implementation group: 'commons-io', name: 'commons-io', version: '2.6'`? – Robert Jan 01 '19 at 11:33
  • I can try. How can I included this in my graddle file ? It return error : startup failed: build file '/app/build.gradle': 48: Statement labels may not be used in build scripts. In case you tried to configure a property named 'group', replace ':' with '=' or ' ', otherwise it will not have the desired effect. @ line 48, column 12. group: implementation 'commons-io', name: 'commons-io', version: '2.6' ^ 1 error Open File – Luzwitz Jan 01 '19 at 11:37
  • I tried like this : implementation 'commons-io:commons-io:2.6' but i have the same error – Luzwitz Jan 01 '19 at 11:49
  • I have same problem with implementation group: 'commons-io', name: 'commons-io', version: '2.6' – Luzwitz Jan 01 '19 at 13:57
  • Check your project for .jar files. It would assume that there is at least one jar file in a lib folder which causes the conflict. – Robert Jan 01 '19 at 14:33
  • Hi have dir Gradle:commons-io:commons-io:2.4@jar -> commons-io-2.4.jar library root -> {META-INF , org.apache.commons.io} -> ... I delete it ? – Luzwitz Jan 01 '19 at 14:49

0 Answers0