gradle版本 classpath "com.android.tools.build:gradle:7.0.4"
项目根目录下的build.gradle里dependencies下添加 //TitleBar implementation 'com.github.getActivity:TitleBar:8.6'
settings.gradle文件添加
maven {url "https://jitpack.io"}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {url "https://jitpack.io"}
jcenter() // Warning: this repository is going to shut down soon
}
}
rootProject.name = "Demo01"
include ':app'