I added the new setting:
android.enableR8 = true
to my Gradle file but and I got the following warning from the compiler
WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
any suggestions on how to get this to work?
Enable more aggressive optimizations R8 includes a set of additional optimizations that are not enabled by default. You can enable these additional optimizations by including the following in your project's gradle.properties file: android.enableR8.fullMode=true.
Android release. In the current Android Studio preview, R8 is enabled by default.
R8 is an app shrinking tool that is used to reduce the size of your application. This tool present in Android Studio works with the rules of Proguard. R8 will convert your app's code into optimized Dalvik code.
For example, the useProGuard setting has been deprecated a while ago - maybe that's what you saw and you're misremembering it.
This is a new feature. The warning is just that. It already works.
The warning will disappear in a future version of Android Studio.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With