android-proguard

Proguard issue “Warning:Ignoring InnerClasses attribute for an anonymous inner class”

扶醉桌前 提交于 2019-11-27 05:24:25
问题 I don't know how I can describe this issue. I searched a lot, but I didn't find any solution. Also this solution did not help me -keepattributes EnclosingMethod: dependencies { compile project(':libraries:material-drawer') compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:recyclerview-v7:23.2.0' compile 'com.android.support:design:23.2.0' compile 'com.google.code.gson:gson:2.4'

How to perform minification and obfuscation with the JACK compiler?

耗尽温柔 提交于 2019-11-27 04:57:24
Google has released a test version of their new JACK compiler for Android developers with Android Studio 2.1. My question is, how do we enable obfuscation for the APK with JACK? The article below says that JACK performs obfuscation natively and eliminates the need for Proguard: Compiling with Jack Whereas the following article says that JACK makes use of Proguard configuration files (i.e. the .pro file) for performing obfuscation: Experimental New Android Tool Chain - Jack and Jill . It also says that During this process Jack also handles any requested code minification (shrinking and/or

What's the difference between “minifyEnabled” and “useProguard” in the Android Plugin for Gradle?

江枫思渺然 提交于 2019-11-26 19:58:28
问题 I see that the Android Plugin for Gradle has a minifyEnabled property as well as a useProguard property, as follows: android { buildTypes { debug { minifyEnabled true useProguard false } release { minifyEnabled true useProguard true } } } What's the difference between these two properties? Or, rather, what's the meaning of each? 回答1: Quoting from tools.android.com: Built-in shrinker Version 2.0 of Android Plugin for Gradle ships with an experimental built-in code shrinker, which can be used

build failing on play-services:11.8.x with pro guard parser error

China☆狼群 提交于 2019-11-26 19:14:20
问题 So it looks like there is a bug in the latest play-services to be deployed. Does anyone know how to work around this issue? FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':myappname:transformClassesWithAndroidGradleClassShrinkerForDevelopmentDebug'. > ProGuard configuration parser error: /Users/myusername/.gradle/caches/transforms-1/files-1.1/play-services-base-11.8.0.aar/d2ad9e16677fda9cf07a1280a66e91ca/proguard.txt line 3:88 no viable alternative at

How to get release build apk file using proguard

▼魔方 西西 提交于 2019-11-26 19:11:56
I am trying to use ProGuard to make release apk file for my project, Apparently I am using many third party libraries, Where I need to use only few classes from them, I would really like to get some explanation regarding this. My debug build is going more than 20-MB , so I would like to reduce that by using shrinking used in proguard , But It is giving me some warning which I can't figure out, went though troubleshooting , I don't know what changes should I make, buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }

Xamarin.Android Proguard - Unsupported class version number 52.0

老子叫甜甜 提交于 2019-11-26 15:19:30
I'm trying to use Proguard in my Xamarin.Android project, yet the compilation fails with the error Unsupported class version number [52.0] (maximum 51.0, Java 1.7) I saw from those two questions that it may be a mismatch between Java 7 and Java 8, more precisely some versions of proguard don't support Java 8. However in Xamarin Preferences -> SDK Location, Java SDK points to JDK 7 : /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home Is there any place where proguard can be configured more precisely ? Any other idea ? Here's the failure log : java.io.IOException: Can't read [

Android/java: Transition / Migration from ProGuard to R8?

我只是一个虾纸丫 提交于 2019-11-26 11:26:07
问题 I wonder how to make the transition / migration from ProGuard to R8 . Should I just remove the Proguard-related lines from my Gradle files and add the android.enableR8 = true line instead ? Thanks. 回答1: Proguard is developed and maintained by GuardSquare while R8 is developed and maintained by Android team which means they are two different products although R8 is compatible with Proguard. As seen from here https://www.guardsquare.com/en/blog/proguard-and-r8 Compatibility of ProGuard and R8

How to perform minification and obfuscation with the JACK compiler?

瘦欲@ 提交于 2019-11-26 11:24:19
问题 Google has released a test version of their new JACK compiler for Android developers with Android Studio 2.1. My question is, how do we enable obfuscation for the APK with JACK? The article below says that JACK performs obfuscation natively and eliminates the need for Proguard: Compiling with Jack Whereas the following article says that JACK makes use of Proguard configuration files (i.e. the .pro file) for performing obfuscation: Experimental New Android Tool Chain - Jack and Jill. It also

How to get release build apk file using proguard

丶灬走出姿态 提交于 2019-11-26 06:49:32
问题 I am trying to use ProGuard to make release apk file for my project, Apparently I am using many third party libraries, Where I need to use only few classes from them, I would really like to get some explanation regarding this. My debug build is going more than 20-MB , so I would like to reduce that by using shrinking used in proguard , But It is giving me some warning which I can\'t figure out, went though troubleshooting, I don\'t know what changes should I make, buildTypes { release {

Xamarin.Android Proguard - Unsupported class version number 52.0

你。 提交于 2019-11-26 04:19:23
问题 I\'m trying to use Proguard in my Xamarin.Android project, yet the compilation fails with the error Unsupported class version number [52.0] (maximum 51.0, Java 1.7) I saw from those two questions that it may be a mismatch between Java 7 and Java 8, more precisely some versions of proguard don\'t support Java 8. However in Xamarin Preferences -> SDK Location, Java SDK points to JDK 7 : /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home Is there any place where proguard can be