代码拉取完成,页面将自动刷新
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: 'config.gradle'
buildscript {
ext.kotlin_version = "1.4.31"
ext.hilt_version = "2.33-beta"
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//hilt 依赖注入框架
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
//kotlin data class 默认没有空构造,通过这个插件增加空构造,并且非final类
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }//必须添加这行
maven {
name "amazonaws"
url "https://s3.amazonaws.com/repo.commonsware.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。