dependencies { classpath "com.android.tools.build:gradle:7.0.3" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
变为:
plugins { id 'com.android.application' version '7.1.3' apply false id 'com.android.library' version '7.1.3' apply false id("org.jetbrains.kotlin.android") version "1.5.30" apply false }
引入Hilt依赖的变化
在Module/build.gradle中:
plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-kapt' id 'dagger.hilt.android.plugin' }