.jar文件的文件名中的非法字符,Android Studio不接受 [英] Illegal characters in filenames of a .jar file which android studio is not accepting

查看:160
本文介绍了.jar文件的文件名中的非法字符,Android Studio不接受的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的android应用程序中使用StanfordCoreNLP库.所以我已经使用gradle.build文件中的以下依赖项导入了.jar文件. 这些是我的gradle依赖项

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

文件已正确导入,但.jar文件中的许多文件的名称中都带有':'字符,这是android studio无法接受的.您可以在此处看到这些名称. .jar文件中包含无效字符的文件名

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

因此,当我尝试制作该项目时出现以下错误. com.android.build.api.transform.TransformException:java.nio.file.InvalidPathException:非法字符<:>在索引43处:edu/stanford/nlp/models/kbp/tokensregex/org:founded_by.rules

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

stanfordCoreNLP的主页表示该库可与utf-8配合使用编码,但不是.首页的编码段

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

所以没有人知道如何使android studio接受':'字符. 预先感谢您的帮助.

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

推荐答案

这是最新发行版中的一个问题.该问题已在GitHub网站上的代码中修复,我们可能很快就会发布一个版本以包含此修复程序:

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

您可以构建最新版本的代码...按照GitHub上的说明进行操作.

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

这篇关于.jar文件的文件名中的非法字符,Android Studio不接受的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆