android-r8 Questions
1
Solved
The app works fine under normal instances but when I try to implement minify and R8. This raises the following error.
* What went wrong:
Execution failed for task ':app:uploadCrashlyticsMappingFile...
Cactus asked 24/6, 2022 at 13:26
2
Solved
I've been experimenting with Android's Baseline Profile & MacroBenchmark libraries for improving the app performance.
The question I have is that it is suggested that the MacroBenchmark's build...
Unemployable asked 10/6, 2022 at 17:49
3
It is common to apply proguard-android-optimize.txt as proguard file.
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'
However, when I went through t...
Colleen asked 5/11, 2019 at 4:9
3
Solved
I am currently working on setting up Firebase (FCM) in my project and have encountered a problem when I run my R8-obfuscated app, the Firebase service (FirebaseMessagingService) no longer works. Ha...
Bookkeeper asked 31/1, 2020 at 9:52
1
Solved
I have a package with some data classes and I'm trying to access the constructor at runtime using Kotlin reflection clazz.primaryConstructor,
Everything is working as expected but when I enable R8,...
Uchida asked 11/12, 2021 at 12:42
3
I have an issue with R8. In MyLib I have public abstract MyLibsClass in which I have protected methods. MyChildClass extends from MyLibsClass in MyApp and after R8's magic all protected methods (in...
Sigil asked 10/1, 2020 at 12:32
4
Solved
Since the 3.5 update of Android Studio, I have this warning when building my app :
DSL element 'useProguard' is obsolete and will be removed soon. Use
'android.enableR8' in gradle.properties to...
Luisluisa asked 24/8, 2019 at 7:29
3
Solved
When building a signed release APK I'm getting following error:
.gradle/caches/transforms-2/files-2.1/532a317ccd54c8ae4f622faeb8b534a9/jetified-wordup-core-0.2.1-runtime.jar:de/codereddev/wordup/da...
Bedtime asked 26/7, 2020 at 10:46
2
I'm using Android Studio 3.4 (Canary 9), when I build my app, it failed with the following error
Task :app:transformClassesAndResourcesWithR8ForDebug
R8 is an
experimental feature. If you e...
Rowlett asked 12/1, 2019 at 17:18
3
Problem
When I click on the debug icon in Android Studio, I get this NullPointerException from R8.
Executing tasks: [:app:assembleDebug] in project /Users/gary/Developer/Foo/Foo-Android
> Tas...
Outworn asked 14/9, 2019 at 6:29
1
I'm using proguard to obfuscate my code, and I have one module called a library and in that module I have an assets folder and I'm keeping some jars that I'm using in runtime.
I want to keep that a...
Trooper asked 31/5, 2021 at 6:21
1
Solved
Tested Environment / Dependencies
Android Studio: Android Studio Arctic Fox Beta 2 and Bumblebee Canary 1
AGP: 7.1.0-alpha01
Firebase Analytics: com.google.firebase:firebase-analytics-ktx:19.0.0
F...
Jessikajessup asked 29/5, 2021 at 15:42
2
Solved
The new version of Android Studio (3.4) just came out and brings with it default support for R8 instead of Proguard. Could someone explain the key differences between the two and any apparent benef...
Haemal asked 18/4, 2019 at 10:50
2
Solved
How can I find out which version of R8 is being used by the Android Gradle Plugin for let's say 4.0.1?
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.and...
Hebdomadary asked 8/12, 2020 at 7:44
1
Solved
I use Kotlin data classes everywhere in my app.
I am using R8 at compile time.
I have a security requirement where the generated toString method cannot contain the original attribute name. At the m...
Doubleedged asked 23/11, 2020 at 23:58
1
Solved
I'm trying to figure out how to keep original line numbers with R8.
Doing an app with current AndroidStudio and obfuscating it with R8, and even uploading mapping.txt file to Google Play Console, t...
Kenti asked 16/10, 2020 at 8:42
1
Solved
I am using https://github.com/amalChandran/trail-android this library in my android project. The animation was working perfectly fine. But, after enabling R8, the animation is not working. The libr...
Capias asked 27/7, 2020 at 7:26
3
Solved
Because of a bug, I have used local jar file for R8 Shrinker (as recommended by R8 team) with adding the classpath to top gradle.build :
classpath files($..../R8.jar/$)
Now regardless of any up...
Theatrics asked 8/3, 2019 at 15:7
2
Solved
First of all, please note that I'm not expecting why do you want to obfuscate library comments. This is a genuine problem I'm asking about.
I have been having an issue dealing with R8/obfuscation w...
Pictogram asked 7/6, 2020 at 18:11
2
Solved
In build.gradle (app) file we have this by default,
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
...
Tiddly asked 8/5, 2020 at 19:17
0
I have a Xamarin.Android app which I recently switched to use R8 code shrinker. Unfortunately, my app is crashing on startup with the following error:
java.lang.RuntimeException: Unable to get pro...
Pindaric asked 24/4, 2020 at 2:11
2
Solved
I created two aar-libraries: com.example:test1:1.0.0 and com.example:test2:1.0.0. I added these libs to my main app and after build Android-Studio throws error:
Duplicate class com.example.utils.a...
Achorn asked 15/8, 2019 at 13:33
1
I have problem with usage of DataBinding in my Dynamic Feature module.
I can't generate binding object related for my fragment when isMinifyEnabled = true
Generally I try to do it using this code...
Schatz asked 4/12, 2019 at 11:37
0
I'm writing Android Studio library by crerating an aar file. I installed this file on maven repository in private network.
I'm trying now to enable users to know only about the classes names and me...
Unbounded asked 22/12, 2019 at 8:59
2
Solved
The negator (exclamation mark) in proguard should allow me to keep anthing but the apache libraries:
-keep class !org.apache.**
According to those answers. That's the way to go:
How to negate ...
Linalinacre asked 9/12, 2019 at 12:10
© 2022 - 2025 — McMap. All rights reserved.