FAQ Database Discussion Community


Proguard optimization

android,proguard,android-proguard
I readed the proguard documentation like 10 times, but I really don't understand one thing: if I put -dontoptimize Optimization will disable, but if I want a full optimization, I have to only remove -dontoptimize or I have to write this? -dontoptimize -optimizations * Can I omit? -optimizations Thanks for...

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

android,google-play-services,proguard,android-proguard
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 ProGuard. -dontobfuscate -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers # Dex does not like code run through the ProGuard optimize and preverify steps # (and performs some...

Retrofit illegalargumentexception, no annotation found

android,retrofit,android-proguard
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 caused by ProGuard. I added the following lines to my ProGuard: -keep class com.google.gson.** { *; } -keep class...

Proguard - also use proguard files from modules

android,android-studio,gradle,proguard,android-proguard
My projects build.gradle looks like following: android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "..." minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile project(':androKnife') } And my androKnife module does have it's own...

How do I use proguard with 3DR Services?

android-proguard,dronekit-android
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 removing some required classes. How should...