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

If I enable proguard then Android gives me this error at release time using v4 support

I enabled the proguard and when I'm releasing apk then proguard generate error. I am using only v4 is it the error? buildTypes { release { minifyEnabled true proguardFiles…
0
votes
1 answer

parse android sdk proguard compilation errors

ok I know this issue has been answer many times, I have seen many post with all kind of recommendations, but no matter what mix I try the apk won't compile this is my proguard-rules.pro files # Keep source file names, line numbers, and Parse…
goseta
  • 770
  • 1
  • 7
  • 26
0
votes
2 answers

proguard-android-optimize build failed

i am trying to disable all logs -assumenosideeffects class android.util.Log { public static *** v(...); public static *** i(...); public static *** w(...); public static *** d(...); public static *** e(...); } -assumenosideeffects class…
andro
  • 1,007
  • 1
  • 14
  • 32
0
votes
0 answers

How to use proguard with andengine?

Could you help me in using the proguard in AndroidStudio? I have an app on andengine lib. All I did was a change in app.gradle of release { minifyEnabled from false to true; and I changed proguard-rules.pro file. First, I added: -keep class…
0
votes
1 answer

Publicly release Android Library not proguarding correctly

I work on a publicly released android library. And, for external release, I need to run proguard with the following options: -keep public class com.example.package_one.* { public protected *; } -keep public class…
0
votes
0 answers

Where is debug mapping file in Android Studio?

In my android studio project, I enable proguard for debug build type: buildTypes { debug { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-debug.txt' } } The problem is after…
shhp
  • 3,653
  • 2
  • 18
  • 23
0
votes
1 answer

Proguard for android obfuscation

Is there an easy way to handle this rather than changing the package name. Eg: I have the following 10 package names and I wish to obfuscate just one of them and keep rest of the other packages.…
tech_human
  • 6,592
  • 16
  • 65
  • 107
0
votes
1 answer

Unable to configure proguard for android

I'm trying to configure proguard for my application. Everything is working fine untill I enabled minifyEnabled in build file. after that is saying below error: Error:Execution failed for task ':app:shrinkReleaseMultiDexComponents'. >…
Mallikarjun P
  • 83
  • 2
  • 7
0
votes
1 answer

Android convert Class in dex to anonymous name

When I decompiled my apk using dex2jar-2.0 I could get my original code only. But for some popular APK, when I followed the same steps I got Class names like A, B, AB etc How to make my apk also secure like those apks Please suggest me
Sharanabasu Angadi
  • 4,304
  • 8
  • 43
  • 67
0
votes
1 answer

Google Play Services - Proguard - We found Ad SDKs in your application

My question is in regards to Google Play's new declaration of ad status and the fact that our application's are being flagged as containing the AdMob SDK (which is included in Google Play Services). Our apps include Google Play Services (library…
0
votes
1 answer

unexpected Proguard Error after adding Admob

I added admob last day in my project and I added proguard parameters as per the document provided by Admob inside the file.Our admob is inside another Library project folder which is shared and common to our 25 other projects, We did this so that it…
unitedartinc
  • 738
  • 1
  • 6
  • 25
0
votes
0 answers

Getting error building with ProGuard

I am getting the following error when I am running my project with ProGuard enabled: Warning:Exception while processing task java.io.IOException: proguard.ParseException: Expecting opening '{' at '|' in line 66 of file…
0
votes
2 answers

Getting warnings and errors after enabling proguard

I enabled proguard for my release build and when I ran the project, I get these warnings and errors. Here is my buildTypes block: buildTypes { release { minifyEnabled true //shrinkResources true …
Amit Tiwari
  • 3,684
  • 6
  • 33
  • 75
0
votes
2 answers

Enabling ProGuard causes failing signed APK generation?

I have enabled minifyEnabled in my gradle file for using the feature of ProGuard to obfuscates code as a result it throwing some error. Note: there were 1 class casts of dynamically created class instances. You might consider explicitly keeping…
Anoop M Maddasseri
  • 10,213
  • 3
  • 52
  • 73
0
votes
0 answers

Mupub ads work in emulator, but not in release build

Installed the Mopub SDK into my Android Studio project (via Fabric), and get full screen ads to work when running in the emulator. However, once I generate a signed ADK build and distribute to real devices, the ads don't appear. Could this be…
vikzilla
  • 3,998
  • 6
  • 36
  • 57