Development issue/problem:

Is there an obfuscation tool to use with Android Studio? The IntelliGuard plugin is supposed to be supported by Studio, but doesn’t really work due to the lack of the AntSupport plugin. I don’t want to find him in the storage room. Do you have any ideas?

The building process of P.S. Android Studio is based on Gradle, so I didn’t expect any support from Ant. Maybe I’m wrong.

How can I solve this problem?

Solution 1:

To hide the code in Android Studio, just navigate to the build.gradle file of your Android Studio project:

Obfuscation in Android Studio –

Change the minifyEnabled property from fake to real

Obfuscation in Android Studio –

It’s a basic cover-up.

After generating the apk you can see the result of the eclipse by decompiling the apk with any software. This page can help you:

Because of the eclipse you see the classes with the names: a,b,c…..

And the variables and methods of embezzlement will have names like aa, c, ac… ac…

Obfuscation in Android Studio –

To modify the code in a more complex way, you can go to your application in the root directory and create a .pro file. In the following image, for example, I created the file: In the same directory you should see the file

Obfuscation in Android Studio –

Now paste the created file into the build.gradle file.

And modify the .pro file created with your own programming rules.

Obfuscation in Android Studio –

Solution 2:

First enable minifyEnabled in your build.gradle file, for example


Then add the following lines to the file progurad-rules.txt

-Packaging to keep an eye on. ** {*; }

To check how it works: so that you can check after decompilation.

It will work and your lessons will be completely hidden.

Solution 3:

Update : R8 is enabled by default in version 3.4.0 and higher of android studio.

In android studio 3.4+, R8 is enabled by default, so there is no need to add additional properties, although you can choose depth optimization by adding the fullMode property in as :


You can disable R8 and enable proguard by adding the following properties to like :

android.enableR8 = false
useProguard = true

Android September 2018 releases the new R8 shrink and blackout tool.

R8 – R8 is a mini tool and a Java code shrinker that converts Java byte code tooptimized dex code.

For AS versions under 3.4.0.

  1. Open University Property
  2. Add android.enableR8 = where

in the form of

# Defines the FMV arguments used for the daemon process.
# The setting is especially useful for optimizing memory settings.
# If configured, Gradle will work in parallel incubation mode.
# This option should only be used for decoupled projects. For more information, see

android.enableR8 = where

Minimum requirements :

  • Studio Android 3.2 Released in September 2018 or later
  • Java 8

Tools R8

R8 supports Proguard:

Please note that R8 is designed to work with existing ProGuard rules, so you are unlikely to need to take any steps to take advantage of R8. However, as this is a different technology from ProGuard, specifically designed for Android projects, it may reduce and optimize code removal that ProGuard may not have. In this unlikely situation, it may be necessary to add additional rules to maintain this code in the output of the construction.

Deactivate R8 in AS 3.4.0 and above :

# Disables R8 for Android library modules only.
android.enableR8.libraries = false
# Disables R8 only for all modules.
android.enableR8 = false

Pay attention: If you make an erroneous setting for this build in your application’s build.gradle file, the Android gradle plugin uses R8 to reduce the application code for this build, regardless of whether you have disabled R8 in your project file.

Solution 4:

Proguard is well supported by Android Studio. You have to configure Gradle to make it work. Instructions:

Good luck!

proguard not obfuscating class names,consumerproguardfiles,minifyenabled true app crash,proguard keep class,proguard flutter,proguard-gradle,android obfuscation github,sqlcipher proguard,cordova proguard plugin,dex2jar medium,ionic obfuscation,how to test code obfuscation in android,android code obfuscation owasp,deobfuscate android apk,proguard obfuscation dictionary,how to obfuscate java code using proguard, example,code obfuscation ios,ionic proguard,android-volley proguard rules,proguard config proguard cfg,proguard config file android,consumer rules pro,android proguard step by step,proguard security android,proguard-android github,proguard fragment,flutter android proguard,proguard obfuscate xml file,kotlin proguard,proguard kotlin file,proguard rules for android kotlin,proguard rule for kotlin,android studio proguard folder,tmp full r8 config txt,amazon getproductdata,amazon iap integration,amazon purchasingservice getproductdata,amazon purchasinglistener,amazon onpurchaseupdatesresponse,amazon in-app purchase sample code,proguard rules android github, flutter, file location,proguard rules for retrofit2,proguard rules for firebase,proguard obfuscation example,android obfuscation tools,android proguard,android r8,android obfuscation proguard,proguard-android example

You May Also Like

What is Pimpandhost? Explained 2021

While taking photos and posting them on the internet is becoming increasingly…

How to fix network resource unavailable error [Full Guide]

Therefore, we recommend a special third party tool that is safe to…

ActionBar – custom view with centered ImageView, Action Items on sides –

Development issue/problem: I need to center a custom logo (using ImageView) in…

15 Best Chatstep Alternatives In 2021

Now that the Internet is becoming an inevitable part of human life…