配置
1、Project gradle配置
classpath "com.google.dagger:hilt-android-gradle-plugin:2.40"
image.png
2、module gradle配置
apply plugin: 'kotlin-kapt'
apply plugin: 'dagger.hilt.android.plugin'
image.png
image.png
implementation "com.google.dagger:hilt-android:2.40"
kapt "com.google.dagger:hilt-android-compiler:2.40"
网友评论