gradle 插件 7.0.0-alpha15 删除了 Android isShrinkResources。如何收缩资源?

标签 android android-gradle-plugin

最新的 Android gradle 插件 7.0.0-alpha15 删除了选项 isShrinkResourcesBuildType .
是否 isMinifyEnabled现在取代它,还是有一种新的方法来确保在构建应用程序时资源会减少?

最佳答案

根据 Google 的说法,缺失的 isShrinkResources 问题已在即将发布的 AGP 7.0-beta1 中得到修复
https://issuetracker.google.com/issues/186806256

关于gradle 插件 7.0.0-alpha15 删除了 Android isShrinkResources。如何收缩资源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67337346/

相关文章:

android - Gradle编译错误 "No Signature of Method"

android - 如果使用Google Play服务,则不能在没有版本冲突的情况下使用最新的compileSdkVersion和targetSdkVersion

android - 具有不同资源的两种口味继承了一种基本口味的布局

android - 使用 SQLite 和 Android 查找附近的位置

android - 我想知道 Android 本身在什么情况下会杀死您的应用程序?

android - 如何在 Android 模块中使用 FirebaseAuth

java - 如何从 Firebase 检索数据? dataSnapshot 有对象,但 getValue() 将返回 null

Android Studio - 在 build.gradle 文件中更改 applicationId

c# - MonoAndroid Version 8.0 编译错误

android - 错误 : error while writing **** File name too long