gradle 修改
加入 kotlin 之后需要使用 kapt,gradle 修改为
//kotlin
//dagger
compile "com.google.dagger:dagger:$rootProject.daggerVersion"
compile "com.google.dagger:dagger-android:$rootProject.daggerVersion"
compile "com.google.dagger:dagger-android-support:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"
compile "com.blankj:utilcode:$rootProject.androidUtilsVerson"
//不加无法编译通过
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$rootProject.kotlin_version"