proguard

Proguard does not remove my logs

百般思念 提交于 2019-12-23 15:02:43
问题 I want to clear my project from logs, when releasing. But i'm trying to use proguard and have zero result: my project settings : proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. target=android-19 android.library.reference.1=..\\google-play-services_lib And my proguard-properties -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -keepattributes LineNumberTable -verbose -optimizations !code

Unable to sign release APK - :app:shrinkReleaseMultiDexComponents FAILED

穿精又带淫゛_ 提交于 2019-12-23 15:02:19
问题 I'm trying to generate a signed apk and the log keeps showing me the following error: :app:compileReleaseJavaWithJavac Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :app:compileReleaseNdk UP-TO-DATE :app:compileReleaseSources :app:collectReleaseMultiDexComponents :app:proguardRelease Warning:com.google.android.gms.internal.zzac: can't find referenced class android.net.http.AndroidHttpClient Warning:com.google.android.gms.internal

Quickblox and Pro Guard error

百般思念 提交于 2019-12-23 13:39:34
问题 I'm developing an app that uses the Quickblox SDK. If I compile it with minifyEnabled false It work's fine. But if I enable minify to obfuscate the code I get the following error: 09-15 15:00:50.865 12029-12029/com.app.meet E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.app.meet, PID: 12029 java.lang.ExceptionInInitializerError at com.g.b.d.a(Unknown Source) at com.app.meet.App.j(Unknown Source) at com.app.meet.j.a(Unknown Source) at com.app.meet.h.e.onServiceConnected(Unknown Source)

Android aar library doesn't contain dependencies

你说的曾经没有我的故事 提交于 2019-12-23 13:27:23
问题 i saw similar questions, but not found accepted answers. Problem - i have my own android library with some tiny functions. My library uses others - f.e. Hawk (no sql database). My library gradle file: apply plugin: 'com.android.library' buildscript { repositories { maven { url "https://www.jitpack.io" } } } android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { minSdkVersion 18 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support

META-INF/version duplicate error when using Proguard

[亡魂溺海] 提交于 2019-12-23 13:21:12
问题 Gradle : 4.10.1 Gradle Android Plugin version : 3.3.2 Proguard : 6.0.3 JDK - 1.9 Android Studio 3.3.2 When I try to build apk release version along with Proguard. I get the following error - Caused by: java.io.IOException: Please correct the above warnings first. at proguard.InputReader.execute(InputReader.java:149) at proguard.ProGuard.readInput(ProGuard.java:255) at proguard.ProGuard.execute(ProGuard.java:96) ...... This seems to be caused due to this - Warning: class [META-INF/versions/9

Android - gradle testProguardFile - what is its purpose relating to unit tests

依然范特西╮ 提交于 2019-12-23 12:55:27
问题 Can someone help me understand the use of testProguardFile. Lets say i have debug buildType and its configured like this in gradle build file: // inside android block debug { shrinkResources true // removes unused graphics etc minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' testProguardFile('test-proguard-rules.pro') } then why am i supplying another proguard rules file called test-proguard-rules.pro for testing ? If i understand correctly

Error when exporting app that used Proguard

吃可爱长大的小学妹 提交于 2019-12-23 12:36:07
问题 I try to use Proguard in my app. I wrote this code in proguard.cfg file: -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends

Do you need to specify the -injars and -outjars options in ProGuard for Android builds?

久未见 提交于 2019-12-23 12:33:00
问题 The default android proguard.cfg file doesn't specify any -injars or an -outjars option, and I haven't found any documentation on what -outjars' output should be. On the other hand, the ProGuard site provides an android sample that includes -injars and -outjars . Which one should I follow? 回答1: I did a bit of searching, and I found a file, $ANDROID_SDK/tools/proguard/examples/android.pro , which states: # # This ProGuard configuration file illustrates how to process Android # applications. #

keep only function names when obfuscation for proguard

十年热恋 提交于 2019-12-23 12:06:11
问题 I use proguard for obfuscation. How can I keep only function names while obfuscation. class names must be obfuscated but function names. if I use, -keep class * { void somefunction(); } and it keeps function of somefunction, but it doesnt change classes names. But, I want to change classes names but somefunction 回答1: You can use -keepclassmembers or -keepclassmembernames . Cfr. ProGuard manual > Usage > Overview of Keep Options 来源: https://stackoverflow.com/questions/11957451/keep-only

Proguard failing with 25.1.6 release of Android tools

北慕城南 提交于 2019-12-23 10:19:11
问题 I downloaded the 25.1.6 release of Android tools today and I'm noticing that proguard is falling over with this error: Error:Execution failed for task ':app:transformClassesWithNewClassShrinkerForDebug'. > /usr/local/opt/android-sdk/tools/proguard/proguard-android.txt line 43:15 extraneous input '[]' expecting ')' I'm certain that I've not changed anything in the proguard-android.txt file. Line 43 reads for me as follows: void set*(%[]); I'm noticing that the file here... https://android