Questions tagged [android-proguard]

The ProGuard tool shrinks, optimizes, and obfuscates your code by removing unused code and renaming classes, fields, and methods with semantically obscure names. The result is a smaller sized .apk file that is more difficult to reverse engineer.

The ProGuard tool shrinks, optimizes, and obfuscates your code by removing unused code and renaming classes, fields, and methods with semantically obscure names. The result is a smaller sized .apk file that is more difficult to reverse engineer. Because ProGuard makes your application harder to reverse engineer, it is important that you use it when your application utilizes features that are sensitive to security like when you are Licensing Your Applications.

ProGuard is integrated into the Android build system, so you do not have to invoke it manually. ProGuard runs only when you build your application in release mode, so you do not have to deal with obfuscated code when you build your application in debug mode. Having ProGuard run is completely optional, but highly recommended.

Official Documentation

1030 questions
-1
votes
1 answer

How to resolve gradle warning: Ignoring InnerClasses attribute for an anonymous inner class

How to resolve the following gradle warning? I added the library by this line: implementation 'org.apache.commons:commons-collections4:4.1' Warning:warning: Ignoring InnerClasses attribute for an anonymous inner…
-1
votes
1 answer

Creating Library project that uses data binding and proguard

I need to create an android library that will also contains layout that uses data binding. I've managed to get the library and the containing app works, but as soon as I try to enable obfuscation (minifyEnabled true) I'm getting: Cannot resolve…
-1
votes
1 answer

error in android, Proguard.cfg (System can not find the file specified.)

How can I solve this problem shown in the image? ../tools/lib/proguard.cfg (System can not find the file specified)
Mayur
  • 4,345
  • 3
  • 26
  • 40
-1
votes
1 answer

java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/naming/ldap/LdapName

I have implemented ProGuard to cut off unnecessary codes. But after the app starts, I am getting the following error - java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/naming/ldap/LdapName; at b.a.b.e.d.a.b(Unknown Source) at…
tahsinRupam
  • 6,325
  • 1
  • 18
  • 34
-1
votes
1 answer

android ProGuard can File Name will change

Can we change file name like "MainActivity.java" to "ab.java" in proGuard, if yes than pls send me that code because i don't know how to put rules in ProGuard Confing file.
-1
votes
1 answer

Proguard not working in java application

I created two simple java class files and converted in to jar file. Setup config.pro file -injars /home/XXXX/lib/XXXX.jar -outjars /home/XXXX/lib/XXXX-out.jar -printmapping proguard.map -libraryjars…
Devaraj C
  • 317
  • 3
  • 11
-1
votes
2 answers

What is the safest, simplest, most versatile proguard config?

My proguard config is hell, crashing my game and seems to not properly. What is the simplest, safest config to use for one-fits-all until I figure out what the hell is wrong? Is there maybe any way to make it change only variable names? Or just…
Gintas_
  • 4,940
  • 12
  • 44
  • 87
-1
votes
1 answer

Worklight push notification not working after applying proguard

I am using IBM's mobilefirst worklight version 6.3 for push notification. Everything works fine when i dont apply proguard. When i apply proguard and run the build while subscribing for the push notification only i get the following…
-1
votes
1 answer

Why does the dex methods count add 3 when I add one method?

I add a method public static void cancelAll(RequestQueue queue,@NonNull final Object tag){ queue.cancelAll(new RequestQueue.RequestFilter() { @Override public boolean apply(Request request) { …
tiny sunlight
  • 6,231
  • 3
  • 21
  • 42
-1
votes
1 answer

how to protect our app by using obfuscation[proguard] in android studio

I am searching for protecting my app by using proguard but I didnt find proper answer how to protect my app. If any body know how to protect our app using obfuscation in proguard help me.
hemanth
  • 19
  • 5
-1
votes
1 answer

How can I force Proguard make my illegible .XML resource file?

I used ProGuard in android studio to protect my data resources because I have two files in it: res / raw / fiche.xml and res / raw / fiche1 .XML so I'd make the content of my unreadable files. My question is how to make these two files unreadable…
Tala
  • 19
  • 1
  • 7
-1
votes
1 answer

Apk size increase after installation on device

My apk size is 20 MB and after installation on device, app size becomes 38 MB, out of which App is 37.10 MB and rest is other data. It will be great if anyone can explain the process of this conversation of data. Why after installation, data becomes…
-1
votes
1 answer

Proguard tutorial / configuration file for android studio

i've been searching for Proguard tutorial or explanatory configuration file all over, i can't find good one, there are very less pages regarding this & no simple explanation/tutorial for beginners. Please guide me to a tutorial which shows how to…
-1
votes
2 answers

issues with proguard and 'com.google.code.gson:gson:2.3.1' library

I have found the proguard issues and answer related to com.google.gson library but not with which are related with com.google.code.gson:gson:2.3.1' library I am using 'com.google.code.gson:gson:2.3.1' library. without proguard its working fine but…
Awadesh
  • 3,530
  • 2
  • 20
  • 32
-2
votes
1 answer

Android studio - Proguard seems to ignore rules, resulting in build error

I keep getting the following errors while trying to make a signed apk using proguard: Warning:com.dropbox.client2.DropboxAPI: can't find referenced class org.json.simple.JSONArray Warning:com.dropbox.client2.DropboxAPI$DropboxFileInfo: can't find…
Anonymous
  • 4,470
  • 3
  • 36
  • 67
1 2 3
68
69