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

Proguarding Google Play Services 7.+ results in com.google.android.gms.internal.zzig: can't find referenced method 'boolean isAttachedToWindow()'

I have an app that is close to the 65K method count limit. I'm currently using Proguard without obfuscation # This is a configuration (rules) file for…
Some Noob Student
  • 14,186
  • 13
  • 65
  • 103
0
votes
1 answer

Proguard, HttpClient and SSLPeerUnverifiedException

I want to use ProGuard in my app. I use org.apache.http.impl.client.DefaultHttpClient to send requests to the server. Without Proguard it works good, but when I turn on the ProGuard I can build the app, but in run-time when I run the app I received…
yugico
  • 161
  • 2
  • 11
0
votes
1 answer

Signed APK Crash when Downloaded from Google Play Store

I am using Facebook SDK for Login with Facebook in my application, app works perfectly when I use unsigned APK or install signed APK in my real device. But when I upload same signed APK on Play Store and download and run it crash with below error…
Himanshu Agarwal
  • 4,623
  • 5
  • 35
  • 49
0
votes
0 answers

Issue with Proguard when keep class of android library

I want to use Proguard for application. I am using com.melnykov.fab.FloatingActionButton as library so I want to exclude the same. I have enabled the proguard in my build.gradle: buildTypes { release { minifyEnabled true …
karsas
  • 1,231
  • 4
  • 12
  • 24
0
votes
2 answers

Enable proguard automatically while creating new project in Android

Many times after building an app and uploading it to play store I realize that I haven't guarded the apk using proguard feature provided by android and anyone can decompile the app using various tools to get my app's source code. So is it possible…
Rahul Sharma
  • 2,867
  • 2
  • 27
  • 40
-1
votes
2 answers

Android how to optimize application code through Proguard

I am working with Android sdk ver-8. (But in manifest I gave android:minSdkVersion="6") I am developing an app. For publishing I want to optimize it. Through ProGuard how can I optimize the code? Please give me steps of using ProGuard.
Jyosna
  • 4,436
  • 13
  • 60
  • 93
-1
votes
1 answer

pcap4j - Android Proguard/R8 Configuration

i am using pcap4j on Android and everything works well on Debug Build. But in release build when activating Proguard/R8 following exception is thrown : java.lang.IllegalStateException: Unsupported target: class org.pcap4j.packet.IpV4Rfc1349Tos …
EAK TEAM
  • 5,726
  • 4
  • 30
  • 52
-1
votes
1 answer

Throwable().getStackTrace()[0].getLineNumber() obfuscated by proguard

Before Proguard with: Throwable().getStackTrace()[0].getLineNumber(); I got: 482 After Proguard I got: 41 Which is obviously wrong. Here is the tested rules to solve this problem : -keep class java.lang.StackElement -keepattributes…
Pensée Absurde
  • 1,315
  • 1
  • 14
  • 20
-1
votes
1 answer

Application not working after submitting to the play store

When i build and when i signed apk its working fine in my phone but after the upload in google play store something happened and it won't start. Once i open the application i face the error unfortunately app has stopped working! i'm really confused!…
AbhiRam
  • 2,033
  • 7
  • 41
  • 94
-1
votes
2 answers

Android Proguard Crash with error Unable to start activity ComponentInfo{com.xx.xxx/com.xx.xxx.activity.MainActivity}:

I'm implementing Proguard in my Android App. When I launch MainActivity after successful Login through Intent its shows App is stopped. How to implement Proguard in an Android app without error? My logcat is as follows: java.lang.RuntimeException:…
-1
votes
2 answers

Is proguard enough to pass penetration testing?

For our android mobile app , we have to choose an obfuscation tool so that our app will pass penetration test cases. Is Proguard enough for the same or we should use Dexguard?
-1
votes
1 answer

java.lang.NullPointerException: name is null when proguard enable

I am getting java.lang.NullPointerException: name is null when i am enabling proguard in debug mode, my app is working fine in debug mmode when i am using without proguard . here is the snippet i am using to enable proguard debug{ …
Rohit Maurya
  • 730
  • 1
  • 9
  • 22
-1
votes
1 answer

How to solve android studio latest version using proguard apk?

build.gradle (Project) buildscript { ext.support_version = '27.0.3' ext.play_service_version = '11.8.0' repositories { jcenter() maven { url 'https://maven.google.com/' } google() } …
-1
votes
2 answers

Android app getting NullPointerException after enabling Progurad

Am getting NullPointerException after enabling the Progurad. In the application am using dependency called "com.github.igalata:Bubble-Picker:v0.2.4". After adding this dependency am getting the NullPointer exception when try to use. FATAL EXCEPTION:…
Binil Surendran
  • 2,524
  • 6
  • 35
  • 58
-1
votes
1 answer

Proguard setup error

I am facing this problems while enabling proguard in my release build. Information:Gradle tasks [:app:assembleRelease] Warning:com.google.maps.android.kml.KmlRenderer$1: can't find referenced field 'int window' in program class…
Ram Mandal
  • 1,899
  • 1
  • 20
  • 35