Skip to content Skip to sidebar Skip to footer

Cannot Open A Library At 'filemapping'

Cannot open a library at 'FileMapping( from=C:\Users\Administrator\AndroidStudioProjects\FreshProject\app\libs\xerceslmpl-2.11.0.jar, to=C:\Users\Administrator\.gradle\caches\tran

Solution 1:

You've just deleted the jetified-xerceslmpl-2.11.0.jar file from the lib folder directly. Now you've to remove the jetified-xerceslmpl-2.11.0.jar file from the dependencies of the program too. So go on File - Project structure - Dependencies - under app find the "jetified-xerceslmpl-2.11.0.jar" and remove it from here. Now again run the project the error will not be there because you've also removed the jetified-xerceslmpl-2.11.0.jar from the file tree structure of your project.

enter image description here

You can also remove this decencies from the build.gradle file under the app directory of your project structure in the dependencies{ }

enter image description here

Hope this will help!!! Happy coding :)

Solution 2:

I have faced this same issue, What's my issue.. i have copied this 'additionnal.jar' file into app\libs folder file name:- additionnal.jar

what i have written in build.gradle file(App level) to include:- implementation files('libs/addtional.jar')

you can see that file name difference additionnal != addtional

hence i changed implementation files('libs/additionnal.jar')

and it worked for me.

Solution 3:

Create a directory named libs in your project if it's not present. In your case this will be C:\Users\Administrator\AndroidStudioProjects\FreshProject\app\libs

Download this file xerceslmpl-2.11.0.jar and extract jar file and put jar file to libs directory that is C:\Users\Administrator\AndroidStudioProjects\FreshProject\app\libs

Try rebuilding your project and it should work.

Post a Comment for "Cannot Open A Library At 'filemapping'"