Warm tip: This article is reproduced from stackoverflow.com, please click
android android-studio-3.6 deprecated flutter

build.gradle: The option 'android.enableR8' is deprecated and should not be used anymore

发布于 2020-05-22 11:22:39

I am new to flutter development.

When I opened my android project in android studio then I got this warning and unable to understand exactly what to do?

I have already read this but not clear to me.

Please tell exactly what to do? (Keep in mind I am new to flutter so be stepwise.)

Questioner
Abhishek Kumar
Viewed
876
1,194 2020-03-24 23:27

Step 1:

Open the gradle.properties file

**Android Studio File Structure**

Step 2:

Disable android.enableR8=true by adding a # in front:

#android.enableR8=true

Alternatively, you can swap out the R8 for D8, The build system changed to using D8 instead of R8.

android.enableD8=true