Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about android-r8

Read more about android-r8

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - android-r8

Proguard/R8 how to not obfuscate only a part of the code?

I want to avoid obfuscating only a part of my code. Initially, I tried to use the -keep like this: -keep class com.my.package.** { *; } However, the only way I found to got this working as I needed w...
test-img

Victor Laerte

android

proguard

android-r8

Votes: 0

Answers: 1

Latest Answer

To make sure ProGuard will not touch a specific part of your code, you can use a keeprule. The keep rule you mentioned should work. Can you maybe specify how you verified whether or not the names were...
test-img

Edevont

AGP 7+ / JDK 11 / release: ClassNotFoundException: Didn't find class "okhttp3.MultipartBody$Part" on path: DexPathList

As the title says, I'm having some issue on a project since we updated to Java 11 and to AGP 7+. The issue only happens in release and when we make a retrofit call using okhttp3.MultipartBody : 2022-0...
test-img

Labotha

android

android-gradle-plugin

proguard

gradlew

android-r8

Votes: 0

Answers: 1

Latest Answer

Possible that R8 can't detect the class being used as it may be invoked by reflection. If that is the case, you have to add explicit keep rule in proguard-project.txt.
test-img

Don Ha

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved