Android Studio 3.0+以上 版本 填坑之依赖报错。

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35956194/article/details/82049436

Error:java.lang.RuntimeException: Annotation processors must be explicitly declared now.  The following dependencies on the compile classpath are found to contain annotation processor.  Please add them to the annotationProcessor configuration.

    我属于典型的只要有新东西立马整起来,不过这里要强调,一定要备份好项目工程。最近Android Studio 3.0已经更新了,更新的小伙伴们可能会遇到我上面标红的问题。依赖炸掉了,很棘手啊,怎么搞。请移步stack overflow看一下。

 对,没错,在我们依赖的下面跟上一句 annotationProcessor + “依赖的包 ” 即可。

另外还有一种错误:

  • 是在项目的project的build.gradle中添加

猜你喜欢

转载自blog.csdn.net/qq_35956194/article/details/82049436