I updated to Android studio Bumblebee 2021.1.1 , the gradle.settings(Project) file structure changes, How can I add the dependencies and classpath for hilt or navigation now?
CodePudding user response:
You can add it at the first line enter image description here
CodePudding user response:
Add Project level dependencies inside buildscript block like shown below :
buildscript {
ext {
compose_version = '1.2.0-alpha04'
hilt_version = '2.41'
accompanist_version = '0.24.2-alpha'
}
dependencies {
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.40.5'\
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.3.0-alpha03' apply false
id 'com.android.library' version '7.3.0-alpha03' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}