今天终于把Android Studio 升级到最新的版本了,在做项目的时候依赖EventBuS却出错了,在网上查了很多资料,终于是解决了这个依赖问题。特此记录一下
第一步:在项目(Project中)的build文件中依赖:
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'//配置EventBu
第二步:在modulue中的build的文件中依赖
implementation 'org.greenrobot:eventbus:3.1.1' annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1'

ok 然后build一下就可以了
本文详细介绍了如何在Android Studio中解决EventBus依赖问题。通过在项目的build文件中配置classpath和在module的build文件中添加implementation及annotationProcessor,最终成功解决了依赖问题。

被折叠的 条评论
为什么被折叠?



