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.)
Android release. In the current Android Studio preview, R8 is enabled by default.
Gradle is an Android build system that automates a number of build processes and prevents many common build errors. In Unity, Gradle reduces the method reference count in DEX (Dalvik Executable format) files, which means you are less likely to come across DEX limit problems. Unity uses Gradle for all Android builds.
For example, the useProGuard setting has been deprecated a while ago - maybe that's what you saw and you're misremembering it.
Step 1:
Open the gradle.properties
file
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
For me, after spending a whole day on it, I solved it by downgrading to JDK 8 and I have previously tried it with embedded JDK and JDK 16.
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