- 將插件注釋
classpath 'com.android.tools.build:gradle:2.3.1'
// classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
apply plugin: 'com.android.application'
// apply plugin: 'com.neenbedankt.android-apt'
- 將使用
apt
標(biāo)記的com.google.dagger:dagger-compiler:2.x改用provided
或annotationProcessor
標(biāo)記
// apt 'com.google.dagger:dagger-compiler:2.10'
// provided 'com.google.dagger:dagger-compiler:2.10'
annotationProcessor 'com.google.dagger:dagger-compiler:2.10'
就這么簡單