Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我更新了 Android Studio,如果我是正确的,更新默认包含 R8 到我的项目中。问题是 r8 仅在默认情况下仅在新项目上激活,还是更新包括对我已经创建的项目的更改?如果没有,我该如何利用它。
在 Android Studio 3.4 中,所有未禁用 R8 的项目默认使用 R8。您可以通过以下方式切换到 Proguard:
android.enableR8 = false
useProguard = true
在 Android Studio 3.5 中,useProguard 标志无效。这意味着始终使用 R8,除非您添加android.enableR8=falsegradle.properties。
android.enableR8=false