Top "Android-r8" questions

Questions related to R8, the default shrinker tool used in the Android build process

Gradle : DSL element 'useProguard' is obsolete and will be removed soon

Since the 3.5 update of Android Studio, I have this warning when building my app : DSL element 'useProguard' is obsolete and …

android gradle proguard android-r8
Android/java: Transition / Migration from ProGuard to R8?

I wonder how to make the transition / migration from ProGuard to R8. Should I just remove the Proguard-related lines from …

android proguard obfuscation android-proguard android-r8
Difference between D8 and R8 android

As android studio introduced two new tools D8 and R8. As per google documentation D8 is a dex tool and …

android dex android-d8 android-r8
How to turn off only the obfuscation in Android R8?

I use Android Studio 3.3 Canary 5, Gradle 4.9, gradle plugin 3.3.0-alpha05 minifyEnabled true useProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' Does't …

android android-r8
GC overhead limit exceeded when enable R8 Shrinker in Android Studio

I'm using Android Studio 3.4 (Canary 9), when I build my app, it failed with the following error Task :app:transformClassesAndResourcesWithR8ForDebug …

android android-studio android-r8 android-studio-3.4
Fatal Exception: java.lang.NullPointerException in release build

I am facing a weird issue in the release build of the app. Here's my exception Fatal Exception: java.lang.…

android kotlin gson retrofit android-r8
R8 throws NullPointerException from within AndroidStudio, but not from commandline via gradlew

Problem When I click on the debug icon in Android Studio, I get this NullPointerException from R8. Executing tasks: [:app:…

android-studio android-gradle-plugin gradlew android-r8
Is r8 enabled on existing project after updating Android studio?

I updated Android studio and if I'm correct the update includes R8 by default to my projects. The question is …

android android-studio android-r8
Android build fails with R8

Build is failing with the following error upon enabling R8 on android studio 3.4-RC3. Build is successful if android.enableR8=…

android android-studio gradle gradle-kotlin-dsl android-r8