Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get 'android.enableR8=true' to pass without warning?

Tags:

android

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?

like image 757
Oren Bochman Avatar asked May 16 '18 08:05

Oren Bochman


People also ask

What is enableR8?

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.

Is R8 enabled by default?

Android release. In the current Android Studio preview, R8 is enabled by default.

What is R8 Android studio?

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.

Is proguard deprecated?

For example, the useProGuard setting has been deprecated a while ago - maybe that's what you saw and you're misremembering it.


1 Answers

This is a new feature. The warning is just that. It already works.

The warning will disappear in a future version of Android Studio.

like image 119
sander Avatar answered Oct 10 '22 01:10

sander