1,在app build.gradle 里面添加了
implementation ‘org.greenrobot:eventbus:3.1.1’
可是在activity 里面无法import 进来,
尝试添加 greendao插件,
dependencies {
classpath ‘com.android.tools.build:gradle:3.5.2’
classpath ‘org.greenrobot:greendao-gradle-plugin:3.3.0’ // 添加插件 更好支持GreenDao
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
提示
Disable offline mode and rerun the build,问题找倒了,
点击

重新build 一下就好了。

4213

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



