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

After applying Proguard, Jackson skipping to parse json response with root

I have enabled Proguard and added proper proguard rules for all the libraries I am using. I use Retrofit for network calls and Jackson converter for parsing responses. My Json responses have root values, to parse this using Jackson I use setting…
Rohan Peshkar
  • 65
  • 1
  • 11
0
votes
1 answer

Android: minification obfuscating dynamically accessed classes

I am using Samsung's Motion library to create a pedometer for Samsung phones. When I create an APK without minification in the gradle configuration file the system works. However when I try to apply minification before releasing to the store,…
FabioC
  • 462
  • 5
  • 14
0
votes
1 answer

ProGuard error trying to generate signed apk

This is my log. the problem happens when I try to generate signed apk: Initializing... Note: the configuration refers to the unknown class 'com.sourcey.example.SignupActivity' Note: com.google.android.gms.internal.zzro calls 'Field.getType' Note:…
Faustino Gagneten
  • 2,564
  • 2
  • 28
  • 54
0
votes
2 answers

InflateException only in a signed apk

java.lang.RuntimeException: Unable to start activity ComponentInfo{muhammad.ibrahim.alkady.al_quran_al_kareem.radio/muhammad.ibrahim.alkady.al_quran_al_kareem.radio.activities.MainActivity}: android.view.InflateException: Binary XML file line #2:…
user5186466
0
votes
1 answer

Proguard "Unmarshalling" error Google SIgnIn , Firebase Auth, Google Drive, In App Billing

I am receiving at run time: Class not found when unmarshalling: com.google.android.gms.common.api.Scope and Class not found when unmarshalling: com.google.android.gms.auth.api.signin.internal.SignInConfiguration errors when creating an release…
0
votes
1 answer

Android Obfuscated APK Issues

I have a strange issue in generating signed APK with Pro-Guard enabled. I am showing a list view with some items from server with text color as black. In debug release the list view showing with data without any issues. But in release mode the list…
Sunny
  • 1,066
  • 1
  • 13
  • 32
0
votes
0 answers

ProGuard and LibGDX: NoSuchMethodError beginContact();

So I've been looking around for a few days now and I can't seem to find the solution. The error only pops up when I have ProGuard enabled so I suppose it's coming from there, however I'm not sure how to change the configuration to fix the…
VoxFox
  • 1
  • 3
0
votes
1 answer

Not able to generate signed .apk due to including proguard

I am trying to generate a signed .apk in android studio. But I have not been able to do the same showing me the following error. I have tried searching a lot and found no solution. Please see the following…
0
votes
0 answers

Proguard Build Android

Error:Uncaught translation error: com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstMethodRef cannot be cast to com.android.dx.rop.cst.CstInterfaceMethodRef Possible causes for this unexpected error include:Gradle's dependency cache…
Kapil Vij
  • 312
  • 2
  • 7
0
votes
0 answers

How to fix error after enable proguard?

After I enable proguard to build release my programe have error: Warning:Exception while processing task java.io.IOException: Can't write [.../build/intermediates/transforms/proguard/release/jars/3/1f/main.jar] (Can't read…
vukinh
  • 33
  • 2
0
votes
2 answers

Setting up proguard-project for Android application

I have just become aware of obfuscation and want to setup proguard to work with my application. I am working in eclipse and I set it up my project.properties as suggested many places, as such # This file is automatically generated by Android…
0
votes
1 answer

Third party library without Proguard rules causing Proguard error

I am receiving the following error when trying to release an obfuscated version using proguard: What went wrong: Execution failed for task ':MyApp:transformClassesAndResourcesWithProguardForMyAppRelease'. java.io.IOException: Please correct the…
JY2k
  • 2,879
  • 1
  • 31
  • 60
0
votes
1 answer

NoClassDefFoundError: android.support.design.internal.NavigationMenuPresenter

After adding the new dependencies in the build.gradle dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.thebluealliance:spectrum:0.5.0' compile…
0
votes
1 answer

proguard + crashlytics crash

I have integrated Crashlytics in my project, Now when I enable proguard, App Crashes. Have tried to exclude all the classes from crashlytics with no success File proguard-rules.pro file has the following -keep class io.fabric.sdk.android.** { *;…
amithgc
  • 6,167
  • 6
  • 29
  • 38
0
votes
1 answer

Get proper stacktrace after proguard compression and app deployment

I have deployed my first app and I am catching the exceptions using google analytics. I am recording the stacktrace. [in.jiyofit.basic_app.WorkoutActivity.a(Unknown Source), in.jiyofit.basic_app.WorkoutActivity.onWindowFocusChanged(Unknown…
suku
  • 10,507
  • 16
  • 75
  • 120