使用gradle错误构建Android项目失败:“非法嵌入符号字符”

时间:2018-06-18 09:24:13

标签: android gradle nexus

无法使用gradle汇编任务构建Android项目。我正在

What went wrong:
A problem occurred configuring root project 'MyProjectTitle'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download javax.activation.jar (com.sun.activation:javax.activation:1.2.0)
      > Failed to download SHA1 for resource 'https://nexus.mycompanydomain.com/repository/jcenter-cache/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.jar'.
         > Illegal embedded sign character

我们正在使用我们自己的Nexus神器库。它适用于一些同事。

1 个答案:

答案 0 :(得分:1)

原来,你需要清理~/.gradle/caches/文件夹。