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
0
votes
1 answer

Missing type parameter. Proguard?

Since I updated my Android Studio, I get at certain parts of my App this exception: "Missing type parameter." I found on Stack Overflow this answer: How do you stop Proguard from removing type parameters? or this proguard Missing type parameter But…
Luca Thiede
  • 3,229
  • 4
  • 21
  • 32
0
votes
1 answer

Does "-keep class ..." rule include public and inner classes?

If I have a proguard rule as follows... -keep class com.mycompany.myapp.** { *; } ... Then are the following two rules obsolete and unnecessary... -keep public class com.mycompany.myapp.** { *; } -keep class com.mycompany.myapp.SomeClass$* { *;…
Adil Hussain
  • 30,049
  • 21
  • 112
  • 147
0
votes
1 answer

Proguard not minifying when debuggable set to true

I am trying to test my app which has passed the 64K limit. I have set minify on but it doesn't work when debuggable is enabled. However, if I build a version with debuggable off then it shrinks it by 2/3! Am I missing something? This is the relevant…
theblitz
  • 6,683
  • 16
  • 60
  • 114
0
votes
1 answer

enabling proguard does not slows the APK generation

I have an Android application .I am making a release build. Earlier I used to generate signed APK using Eclipse with proguard enabled. It used to take 4 minutes to generated my APK. Now I have moved to Android Studio. Now when I try to generate…
Pardeep Kr
  • 479
  • 2
  • 6
  • 25
0
votes
1 answer

android : ProGuard error , there were 4 duplicate class definitions

I am using ksoap2 version 2.4 to connect a .net webservice and get data.I am using ProGuard when I export my application. I got this error when exporting by proguard.there is no problem when I dont use it. [2016-04-13 11:41:39 - Agency] Proguard…
m n
  • 223
  • 1
  • 7
  • 19
0
votes
1 answer

Android Pro-guard duplicate zip entry in .aar file

In my project, i included two .aar libraries and both aar libraries have a commmon .jar file in their libs folder. When i try to obfuscate my code using pro-guard >Error:Execution failed for task…
user1595266
  • 85
  • 3
  • 12
0
votes
1 answer

One jar screws up while Proguard obfuscation, what should I do?

"asm-4.0.jar", "org.objectweb.asm", if this .jar is included, I get this error, while building: AGPBI: {"kind":"error","text":"Uncaught translation error: com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstMethodRef cannot be cast to…
Gintas_
  • 4,940
  • 12
  • 44
  • 87
0
votes
0 answers

Proguard build failed(Eclipse)

This question already have been asked many times, but I am not able to resolve it. I am trying to export my app using eclipse for final release, but I am getting the below error. I already added -keep class com.afollestad.materialdialogs.*{ *;…
chabok
  • 1
  • 1
0
votes
1 answer

ProGuard exclude a jar file

i have two build variants in my project and they use their own pro guard rules. One build variant requires a Jar file, while the other one doesn't need it. So i wanna configure the pro guard to not to include the jar file , while building the…
smash_apps
  • 72
  • 5
0
votes
1 answer

Proguard error log giving wrong library/class name

I been trying to generate an APK with Proguard and every time I get this error. It warns me about some inner class that I can't find and the name seems to be obfuscated like the following: class Error:(b.a.a.a.a.b.o) here is my proguard…
Jose Gonzalez
  • 1,491
  • 3
  • 25
  • 51
0
votes
2 answers

How to remove unused overridden toString() methods with Proguard or other tools?

There are some shared codes in both my Android project and my Java app server project. In the server project I overrode some toString() methods for logging, which are not needed in the Android project. Then I optimized the codes in my Android…
Shreck Ye
  • 1,591
  • 2
  • 16
  • 32
0
votes
1 answer

"Duplicate Zip Entry" (from Proguard) - renderscript-v8.jar

I am developing android application in Android Studio. There is no problem when I build the project an export signed APK without Proguard, but when I try to build the project with ProGuard(minifyEnabled true), there is an Proguard build failed with…
Hardik Kubavat
  • 251
  • 3
  • 23
0
votes
1 answer

Proguard keepclassmembers keeps class *

I am wondering what does this do: -keepclassmembers class * { private ; } Will this rule actually prevent the all classes from being obfuscated?
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
0
votes
2 answers

generate singed apk error

not generate singed apk. but not error when run app. When running ProGuard on our Application and generate apk we see the following warning. Warning:com.localytics.android.SessionHandler$15: can't find referenced method 'void…
0
votes
1 answer

Android: Proguard error in eclipse

I am trying to built the signed apk of my app. But i am getting the error pop up as Proguard returned with error code 1. See console And error log in console as : [2016-04-15 11:36:44 - MyApp] Proguard returned with error code 1. See…
Manoj Fegde
  • 4,786
  • 15
  • 50
  • 95