项目地址:https://github.com/pedant/sweet-alert-dialog
1、添加项目依赖
(1)在Project的build.gradle(你的项目名称)中添加mavenCentral()
```
buildscript {
repositories {
google()
jcenter()
mavenCentral() //添加这句话
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
```
(2)在Module的build.gradle(app)中添加依赖
```
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplemen