android-proguard

NoClassDefFoundError: android.support.design.internal.NavigationMenu on Android 4.2.2 (wiko)

大兔子大兔子 提交于 2019-11-30 18:37:55
I am trying to use the Android Support Design library (in version 23.0.1) and the class NavigationMenu (I use this class as an XML tag into a layout). When I execute my app on a Samsung on Android 4.3 or on a Nexus on Android 5.x or 6.0 everything works well, but when I execute the app on a Wiko Rainbow on Android 4.2.2, it crashes with the following exception : java.lang.RuntimeException: Unable to start activity ComponentInfo{applicationId/package.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class <unknown> [...] Caused by: android.view

Xamarin Android ProGuard Enable

佐手、 提交于 2019-11-30 14:15:28
i am working on xamarin application. When i enable "ProGuard" in android properties, while building the application, I'm getting the following error: "java.exe" exited with code1. proguard cfg file has the following: -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service Developing Environment: Visual Studio 2015 Xamarin 4.0.4.4 I had the same issue when enabling ProGuard. By following the advice on this link , I fixed the issue by updating my proguard manually. The steps are fairly easy to follow

Obfuscate private fields using ProGuard

心已入冬 提交于 2019-11-30 12:24:03
问题 I'm using ProGuard in AndroidStudio 1.2.1.1 with Gradle 1.2.3. My Gradle's release build is configured like so: minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' shrinkResources true I would like the private fields of classes to be obfuscated. Here is my proguard config file (after many tries) as of now: -allowaccessmodification -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -renamesourcefileattribute SourceFile

Android Build with Gradle and ProGuard : “The output jar must be specified after an input jar, or it will be empty”

前提是你 提交于 2019-11-30 08:01:24
I'm creating a build with different flavors with Gradle. It used to run quite good until now, until I wanted to enable Proguard . I enabled minifyEnabled for my Release Build and now I'm having an exception saying : " Caused by: org.gradle.internal.UncheckedException: java.io.IOException: The output jar [.../app/build/intermediates/multi-dex/dev/release/componentClasses.jar] must be specified after an input jar, or it will be empty. " Does anybody know what is causing this exception ? I basically want to enable ProGuard before I release my application. Here is my Gradle file below. lintOptions

NoClassDefFoundError: android.support.design.internal.NavigationMenu on Android 4.2.2 (wiko)

坚强是说给别人听的谎言 提交于 2019-11-30 02:47:13
问题 I am trying to use the Android Support Design library (in version 23.0.1) and the class NavigationMenu (I use this class as an XML tag into a layout). When I execute my app on a Samsung on Android 4.3 or on a Nexus on Android 5.x or 6.0 everything works well, but when I execute the app on a Wiko Rainbow on Android 4.2.2, it crashes with the following exception : java.lang.RuntimeException: Unable to start activity ComponentInfo{applicationId/package.MainActivity}: android.view

Obfuscate private fields using ProGuard

試著忘記壹切 提交于 2019-11-30 02:00:53
I'm using ProGuard in AndroidStudio 1.2.1.1 with Gradle 1.2.3. My Gradle's release build is configured like so: minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' shrinkResources true I would like the private fields of classes to be obfuscated. Here is my proguard config file (after many tries) as of now: -allowaccessmodification -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -renamesourcefileattribute SourceFile -keepattributes SourceFile,LineNumberTable -repackageclasses '' -verbose [...] But I end up, after

How to remove System.out.print statements with Proguard

╄→гoц情女王★ 提交于 2019-11-29 22:16:01
问题 I want to remove all print statements with proguard . Is there an equaivilent to the code below but for System.out.println() -assumenosideeffects class android.util.Log { public static *** d(...); } 回答1: For removing all System.out.println , you can add following in your rules. -assumenosideeffects class java.io.PrintStream { public void println(%); public void println(**); } 来源: https://stackoverflow.com/questions/35104775/how-to-remove-system-out-print-statements-with-proguard

Build fails with app:transformClassesAndResourcesWithProguardForRelease on upgrading gradle version to 2.3.3

╄→гoц情女王★ 提交于 2019-11-29 17:41:00
I have my gradle to 2.3.3. It is working fine in debug mode. But when i am running this in release mode with proguard enabled, It is thorwing this exception Warning:Exception while processing task java.io.IOException: java.lang.NullPointerException Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForProdRelease'. I have checked many solution on stackoverflow like same problem as mine but this solution didn't work On running gradlew assembleRelease --stacktrace command in terminal org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app

Android design support library proguard rules

蓝咒 提交于 2019-11-29 17:19:39
问题 Have been trying to find some information about the rules needed for the new design support library to work passing proguard. I couldn't find any information about it. Ended up using these rules: -keep class android.support.design.widget.** { *; } -keep interface android.support.design.widget.** { *; } -dontwarn android.support.design.** These rules seem to work but I'm not really sure if there are better rules or if it works with all the classes inside the design support library 回答1: I meet

Proguard - Can't find common super class of [com/google/android/gms/d/kl]

廉价感情. 提交于 2019-11-29 16:54:21
I am failing to create a release build. Suddenly Android Studio started throwing below error. Unexpected error while performing partial evaluation: Class = [com/google/android/gms/d/lc] Method = [a(Lcom/google/android/gms/d/kk;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/google/android/gms/d/lh;Lcom/google/android/gms/d/en;Lcom/google/android/gms/d/lb;)Lcom/google/android/gms/d/kn;] Exception = [java.lang.IllegalArgumentException] (Can't find common super class of [com/google/android/gms/d/kn] (with 1 known super classes) and [java/lang/String] (with 2