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
0 answers

Proguard makes my ConnectionService null

I have a fragment that binds to a running service. So to bind I first declare a ConnectionService field as private ServiceConnection mMyConnection = new ServiceConnection() { 
 @Override
 public void onServiceConnected(ComponentName…
0
votes
0 answers

How to drop third party jars from obfuscated jar using proguard, gradle

I'm using -libraryjar as dependency to obfuscate my android library jar like this: -injars build/libs/mylib.jar -outjars build/libs/mylib-proguarded.jar -libraryjars build/intermediates/classes/release/libs/gson-2.3.1.jar This bundles gson…
bianca
  • 7,004
  • 12
  • 43
  • 58
0
votes
0 answers

DexGuard-7.0.19 java.lang.NoSuchMethodError: setAnnotationDatabasePackageNames for RoboGuice

DexGuard version 7.0.19 throwring error "java.lang.NoSuchMethodError: No static method setAnnotationDatabasePackageNames" in RoboGuice. (Code working fine for DexGuard versions below 7). I have tried followings in my dexguard-project.txt…
0
votes
2 answers

Enabling the Pro-guard in android applications is Essential or not before releasing in app store

Please Let me know Pro-guard in android applications is Essential or not before releasing in app store. in some sources are mentioned using pro-guard in android applications, may create problem in application. Link Source Benefit Reduced APK…
Kumar
  • 969
  • 2
  • 22
  • 56
0
votes
1 answer

How to use proguard.config setting in project.properties file?

I use eclipse and I guess ant building system. In my project root i have a project.properties file which contains proguard.config setting. This setting is said in sdk examples to…
f470071
  • 1,527
  • 3
  • 18
  • 30
0
votes
1 answer

Proguard keep by source file path

Proguard has options for -keep-ing a class based on its package name/hierarchy. Is it possible to -keep based on the source file's actual path? Example: java/com/a/b/c/Class.java contains package com.a.b.c.Class tests/com/a/b/c/ClassTest.java…
arcyqwerty
  • 10,325
  • 4
  • 47
  • 84
0
votes
2 answers

How can I tell if I'm using Proguard to obfuscate my code?

I have an app that I migrated from Eclipse to Android-Studio. I want to make sure I'm using Proguard for my release version. I see in my build.gradle file this: buildTypes { release { minifyEnabled false …
Barodapride
  • 3,475
  • 4
  • 25
  • 36
0
votes
1 answer

android gradle packageAllDebugClassesForMultiDex

I try using proguard, but receive error with gradle. Please help me determinate error and resolve. How I can exclude duplication from buid dex. * What went wrong: Execution failed for task…
smail2133
  • 936
  • 2
  • 7
  • 24
0
votes
1 answer

Android Proguard: Release build Force Close

I generated release build by enabling minifyEnabled property and when I try to run the release build, it force closes with following log. Please help me to debug it java.lang.NullPointerException at…
Harsh
  • 644
  • 3
  • 14
  • 27
0
votes
0 answers

Can't find referenced method 'void sort(java.util.Comparator)' in library class java.util.ArrayList

I've configured my project for pro-guard which was working fine for a long while and now all of a sudden I'm getting this error on production. Warning:com.company.game.objects.ui.popups.MPSearch$2$1: can't find referenced method 'void…
Oliver Dixon
  • 7,012
  • 5
  • 61
  • 95
0
votes
1 answer

WHY? AndroidStudio+Gradle = 46000 method count VS Eclipse+Ant = 43000 method count

I'm compiling a project using proguard with Google Play Services 7.5, Android 21 and Support v4 library. My method count is higher if i compile it with android studio than if i compile it with eclipse. I used a program called dex-method-count into…
0
votes
2 answers

How can I update only the proguard in android studio

I have older version of the android studio and I am happy from that. I think in newer version of the android studio, the proguard has been updated also. Now, I want to have the updated version of proguard in my android studio. Is it possible?
0
votes
2 answers

How to resolve following error while exporting APK in release mode?

:app:proguardDebug Warning:com.google.common.base.Absent: can't find referenced class javax.annotation.Nullable Warning:com.google.common.collect.Collections2: can't find referenced class…
Nawaf
  • 424
  • 5
  • 17
0
votes
1 answer

Android Studio Cannot validate breakpoints

I have SomeActivity that extends BaseActivity that extends Activity. When I put breakpoints into Android Studio, it keeps them red with no either cross or checkmark. EDIT: The breakpoints are not validated, but they work when the activity comes to…
Tree
  • 29,135
  • 24
  • 78
  • 98
0
votes
0 answers

Is there a way to create Proguard settings for my Android Application?

I have my android project ready with 6 external libraries, now I want to automatically generate proguard for my application. Is it possible to generate proguard file along with all libraries included? Here are my…
Hari krishna
  • 1,142
  • 1
  • 12
  • 29