litepal proguardFiles android studio

复制代码
Step1:settings.gradle.kts  or   settings.gradle  添加阿里源
html 复制代码
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 {
    *;
}
相关推荐
古怪今人20 小时前
Android Studio的安装及配置 创建项目编译、运行、调试、打包安装包
android·ide·android studio
eric*16882 天前
彻底解决 INSTALL_FAILED_TEST_ONLY 安装失败的问题
android·android studio·install_failed_·error code·ailed_test_only·test_only·install_failed
问心无愧05132 天前
ctf show web 入门42
android·前端·android studio
LuDvei3 天前
Ubuntu 20.04 安装 Android Studio 详细指南
linux·ubuntu·android studio
svdo1250p6 天前
“Fatal error: require(): Failed opening required...” 以及如何彻底避免它再次出现
android·ide·android studio
帅次7 天前
LazyColumn 懒加载、items 与 key
android·flutter·kotlin·android studio·webview
克里斯蒂亚诺更新7 天前
Android Studio的运行一个简单的apk和模拟器
android·ide·android studio
克里斯蒂亚诺更新7 天前
android studio导出apk
android·ide·android studio
帅次8 天前
状态 StateFlow、ViewModel 与 UI 收集
android·kotlin·gradle·android studio·android jetpack
花花鱼8 天前
android studio 图标的使用及处理
android·ide·android studio