mnlin 2017-12-15 14:36 采纳率: 0%
浏览 3055
已结题

Androidstudio 无法引用自定义的注解处理器 Processor

自定义了注解处理器,用于方法注入

public class MethodJnjectProcessor extends AbstractProcessor 

上传到Bintray的个人仓库后,在项目中引用

 annotationProcessor "com.knowledge.mnlin:methodinject-compiler:0.0.1"

却提示找不到资源

 Could not resolve all files for configuration ':app:debugAnnotationProcessorClasspath'.
> Could not find methodinject-compiler.jar (com.knowledge.mnlin:methodinject-compiler:0.0.1).
  Searched in the following locations:
      https://dl.bintray.com/lovingning/maven/com/knowledge/mnlin/methodinject-compiler/0.0.1/methodinject-compiler-0.0.1.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

但事实上这个路径在浏览中打开的话,是可以下载到jar包的

图片说明

所以说,可以看到jar包可以下载成功的,但gradle的错误显示的也很明显,不知道是什么原因

图片说明

  • 写回答

2条回答 默认 最新

  • devmiao 2017-12-15 15:47
    关注
    评论

报告相同问题?