android-proguard

Do library dependency increase size of APK?

亡梦爱人 提交于 2020-01-13 03:13:10
问题 I have multiple libraries in my project like dependencies { compile files('libs/universalloaderlibrary.jar') compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:design:22.2.1' compile 'com.android.support:recyclerview-v7:22.2.1' compile 'com.android.support:cardview-v7:22.2.1' compile 'de.hdodenhof:circleimageview:1.3.0' compile 'com.jakewharton:butterknife:7.0.1' //noinspection GradleCompatible compile 'com.google

Stack size becomes negative after instruction

帅比萌擦擦* 提交于 2020-01-12 05:25:08
问题 It has been pointed out that the reason I am having this problem is because of proguard 4.9, so I went ahead and updated to proguard-5.2.1. But I am still having the same problem. Has anyone found a solution? I confirmed the new version through java -jar /projects/tools/android-sdk-macosx/tools/proguard/lib/proguard.jar and my proguard-rule.pro is simply #---- Google Cloud Endpoint section # Needed by google-api-client to keep generic types and @Key annotations accessed via reflection

GMail API not working properly when minifyEnabled=true

偶尔善良 提交于 2020-01-04 05:30:25
问题 I am developing an Android app that sends e-mails using the GMail API. I have used the example code at Android Quickstart and Sending Email and everything works fine when I debug the app. The problem arises when I build the release version with minifyEnabled=true . In that case, the call to service.users().messages().send(userId, message).execute(); goes into error with IOException . The message of the exception is "404 Not Found". The Proguard file includes all the -keep class and -dontwarn

ProGuard not working as expected after Android Studio update

假如想象 提交于 2020-01-03 08:20:48
问题 Since I updated Android Studio to version 1.2.1.1 I have the following problem: Whenever I build a release version / build variant of my app, I get a NoClassDefFoundError on the Adjust library I have included in the project as a library module. The stracktrace: java.lang.NoClassDefFoundError: com.adjust.sdk.AdjustConfig at de.myapp.GlobalApp.prepareAdjust(GlobalApp.java:111) at de.myapp.GlobalApp.onCreate(GlobalApp.java:71) at android.app.Instrumentation.callApplicationOnCreate

ProGuard not working as expected after Android Studio update

独自空忆成欢 提交于 2020-01-03 08:20:08
问题 Since I updated Android Studio to version 1.2.1.1 I have the following problem: Whenever I build a release version / build variant of my app, I get a NoClassDefFoundError on the Adjust library I have included in the project as a library module. The stracktrace: java.lang.NoClassDefFoundError: com.adjust.sdk.AdjustConfig at de.myapp.GlobalApp.prepareAdjust(GlobalApp.java:111) at de.myapp.GlobalApp.onCreate(GlobalApp.java:71) at android.app.Instrumentation.callApplicationOnCreate

How to inspect proguard process, so I know what takes so long?

北城余情 提交于 2020-01-02 08:13:01
问题 My release build is stuck on :android:transformClassesAndResourcesWithProguardForRelease for 10 minutes. Gradle console does not print anything. How do I make it print what proguard is doing, so I know where the problem could be? 回答1: You need to add the following to your proguard configuration file: -verbose Additionally, you need to enable info logging for your gradle build via gradle -i <target> where target is the actual task your are running (most likely assembleRelease). Then you will

How to inspect proguard process, so I know what takes so long?

亡梦爱人 提交于 2020-01-02 08:12:10
问题 My release build is stuck on :android:transformClassesAndResourcesWithProguardForRelease for 10 minutes. Gradle console does not print anything. How do I make it print what proguard is doing, so I know where the problem could be? 回答1: You need to add the following to your proguard configuration file: -verbose Additionally, you need to enable info logging for your gradle build via gradle -i <target> where target is the actual task your are running (most likely assembleRelease). Then you will

Retrofit2 proguard remove param

徘徊边缘 提交于 2020-01-02 02:44:14
问题 I use retrofit 2 & using proguard in my project. My proguard: -dontwarn retrofit2.** -keep class retrofit2.** { *; } -keepattributes Signature -keepattributes Exceptions -keepclassmembers class fqcn.of.javascript.interface.for.webview { public *; } # Begin twitter 4j. -dontwarn twitter4j.** -keep class twitter4j.conf.PropertyConfigurationFactory -keep class twitter4j.** { *; } # End twitter 4j. # Start androidsocialnetworks -keep class com.androidsocialnetworks.lib.** { *; } # End

Android: How to generate signed APK with minifyEnabled

吃可爱长大的小学妹 提交于 2020-01-01 19:50:43
问题 I have an android app, I just finished working on it and am ready to publish it on PlayStore. However, to avoid someone else from directly decompiling it, I wanted to add the proguard layer of security. I tried to generate signed apk after setting minifyEnabled to 'true'. However, android studio started showing several errors, at one point the count went beyond 800 errors. I tried searching for a solution online and got to know the main cause of this problem might be all the third party

Configure Proguard-rules with Firebase

雨燕双飞 提交于 2019-12-31 06:53:27
问题 I've this project and i use Firebase Realtime Database. It's correct write this proguard rules? -keepattributes Signature -keepclassmembers class activity.** { *; } -keepclassmembers class adapter.** { *; } -keepclassmembers class fragment.** { *; } -keepclassmembers class persistence.** { *; } -keepclassmembers class services.** { *; } The app work perfectly but when i release on PlayStore it seem that the query doesn't work. In my gradle i added release { minifyEnabled true proguardFiles