- "-x" 表示使用的是 jetpack androidx 的依赖
- 若使用 AppCompat 将 '-x' 后缀去除即可
Add it in your root build.gradle at the end of repositories
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add it in your module build.gradle at the end of dependencies
dependencies {
...
implementation 'com.github.SharryChoo:SToolbar:+'
// Dependencies
implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
}