Bootstrap

litepal proguardFiles android studio

Step1:settings.gradle.kts  or   settings.gradle  添加阿里源
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        maven(url = "https://jitpack.io")


        maven (url ="https://maven.aliyun.com/repository/public")
        google()
        mavenCentral()


    }
}
Step2:   在工程目录下proguard-rules.pro  添加如下代码
-dontwarn org.litepal.**
-keep class org.litepal.** {*; }
-keep class * extends org.litepal.crud.LitePalSupport {
    *;
}

-keep class * extends LitePalSupport {
    *;
}
;