我做一个annotationProcessor。
implementation "com.github.boybeak:adapter:5.4.5"
annotationProcessor "com.github.boybeak:adapter-compiler:5.4.5"
运行代码后,就会发生错误。
Could not find Adapter:annotation:unspecified.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/Adapter/annotation/unspecified/annotation-unspecified.pom
- https://dl.google.com/dl/android/maven2/Adapter/annotation/unspecified/annotation-unspecified.jar
- https://jcenter.bintray.com/Adapter/annotation/unspecified/annotation-unspecified.pom
- https://jcenter.bintray.com/Adapter/annotation/unspecified/annotation-unspecified.jar
Required by:
project :adapter > com.github.boybeak:adapter-compiler:5.4.5
奇怪的是,为什么android studio要求从这些URL进行注释,并且由于URL不存在而无法加载其中的任何一个。
我在我的注解处理器项目中使用
com.github.dcendents:android-maven-gradle-plugin
。我将android-maven-gradle-plugin更新到2.0版后,会出现此问题,但是如果我不更新插件,则会出现另一个错误“找不到javapoet.TypedName”。