Illegal characters in filenames of a .jar file which android studio is not accepting

末鹿安然 提交于 2020-01-14 07:02:49

问题


I wanted to use StanfordCoreNLP library in my android app . So i have imported the .jar files using the following dependencies in my gradle.build file . These are my gradle dependencies

The Files are imported properly but many of the files in the .jar file have ':' character in their names which the android studio wont accept .You can see the names here . Filenames with invalid characters in .jar file

So i got an error as below when i tried to make the project . com.android.build.api.transform.TransformException: java.nio.file.InvalidPathException: Illegal char <:> at index 43: edu/stanford/nlp/models/kbp/tokensregex/org:founded_by.rules

And the homepage of stanfordCoreNLP says that the lib works fine with utf-8 encoding but it is'nt .Encoding snippet from homepage

So does anyone have an idea how to make android studio accept the ':' character . Thanks in advance for any help .


回答1:


This is an issue with the most recent releases. This is fixed in the code on the GitHub site, and we will probably do a release fairly soon to include this fix:

https://github.com/stanfordnlp/CoreNLP

You can build a version of the latest code...follow the instructions from GitHub.



来源:https://stackoverflow.com/questions/51055961/illegal-characters-in-filenames-of-a-jar-file-which-android-studio-is-not-accep

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!