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

Google Play Services and Support V4 with ProGuard... Problems?

I recently added proguard into a huge project using Google Play Services and Suppport V4 last version libraries. I did not add anything about these libraries to proguard config files, i just add this: -ignorewarnings -dontobfuscate Now i noticed…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
0 answers

LEADBOLT ads proguard error line 1

i integrated LEADBOLT ads in my android application i use Proguard. When i export apk than following error occur. I post here console error and Proguard-project.text I include AdColony in my android app and now I am trying to export my app with…
0
votes
1 answer

UserTimeline callback doesn't return with proguard enabled

I'm using the TweetTimelineListAdapter from Fabric to display a list of tweets. This works fine with proguard disabled, but when I enable it, my UserTimeline object stops returning any success or failure in its callback. There are no errors or…
howettl
  • 12,419
  • 13
  • 56
  • 91
0
votes
2 answers

Keep method name from Obfuscator Proguard

How can I prevent method SendToGroup() from Obfuscator in proguard. Coz, this method name will be call from server side and need to be same name (dynamic method call). It's a push from signalR. public class main { private class inner implement…
Jongz Puangput
  • 5,527
  • 10
  • 58
  • 96
0
votes
1 answer

Enabling Proguard fail with Can't process class [org/fmod/FMODAudioDevice.class]

I have the classes.jar from Unity3d included in my libs folder of Project in Android Studio. If i enable proguard, i could not build it. minifyEnabled true my build.grade got dependencies dependencies { compile…
FindIt
  • 807
  • 6
  • 14
0
votes
1 answer

Fail in release output via Proguard (Android)

My application run correctly in dedug mode and no have problen. But when try to Release app ، meet below Warning : Warning:android.support.v4.media.session.MediaSessionCompatApi22: can't find referenced method 'void setRatingType(int)' in library…
Saeid
  • 2,261
  • 4
  • 27
  • 59
0
votes
2 answers

How to import only one specific package from module to avoid 65k issue

I have several modules in project (A, B, C). Module B is using by another modules. In result I'm getting 65k method limit issue. So. Is there a way to import only specific packages from module B to module A? May it can be realized using proguard?
Andrew F
  • 1,712
  • 2
  • 15
  • 24
0
votes
0 answers

Android Proguard Error on debug build

I wanted to see Proguard in action on Debug build. Here's my build.gradle with Android Studio. buildTypes { debug { minifyEnabled true proguardFile getDefaultProguardFile('proguard-android-optimize.txt') } …
mesh
  • 849
  • 9
  • 16
0
votes
1 answer

Proguard - how do you know what modifications to make to to the proguard file based off the jars and libraries you use?

I am having some troubles with Proguard. When I enable Proguard and then try to sign my application package, I get the following errors in my console: Proguard returned with error code 1. See console Warning:…
Jack
  • 2,043
  • 7
  • 40
  • 69
0
votes
1 answer

Build.gradle file setup

I am hitting the following issue. I am new to editing the guild.gradle or the proguard files. Unable to execute dex: method ID not in [0, 0xffff]: 65536 Following are list of features I need from google play services. I have the google play version…
0
votes
1 answer

ProGuard in Android Studio

I am using ProGuard for my apps. Unfortunately, when attempting to release the APK for the 2nd time, Android Studio is giving me this error: Generate signed APK: Errors while building apk, see messages tool window for list of errors. The first…
0
votes
1 answer

Retrofit illegalargumentexception, no annotation found

So when running my app I'm getting this error: 06-17 12:56:08.547 E/AndroidRuntime(23432): Caused by: java.lang.IllegalArgumentException: XapoService.credit: No Retrofit annotation found. (parameter #1) I have Google searches and found it may be…
Adrian Le Roy Devezin
  • 672
  • 1
  • 13
  • 41
0
votes
2 answers

Using proguard with Android Studio

My build.gradle has . . . buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } Every proguard-android.txt file I can find (like…
Dean Blakely
  • 3,535
  • 11
  • 51
  • 83
0
votes
1 answer

How do I use proguard with 3DR Services?

When I build my App using proguard, I get the following message: Install 3DR Services! 3DR Services must be installed on the device to use this app However, 3DR Services is installed on my phone. Since it works without proguard, I assume it is…
JonasVautherin
  • 7,297
  • 6
  • 49
  • 95
0
votes
2 answers

i can't build app when use ProGuard in Android Studio

I am using lasted version of Android Studio, and i have obfuscated my project by ProGuard in Android Studio. edit content of Build.gradlesuch as this : buildTypes { release { minifyEnabled true proguardFiles…
dashakhe.goli
  • 59
  • 2
  • 7