proguard

Android - Proguard duplicate zip entry error

血红的双手。 提交于 2019-11-28 12:01:54
I am trying to use proguard in an android application which uses a android library project and I am getting the following error : java.io.IOException: Can't write [/private/var/folders/Pg/PgUpPJQ-E5qxL7jX6kpdCE+++TI/-Tmp-/android_3140050575281008652.jar] (Can't read [proguard.ClassPathEntry@1f8d244] (Duplicate zip entry [be.class == android_144638064543155619.jar:com/comp/dp/library/R$anim.class])) at proguard.OutputWriter.writeOutput(OutputWriter.java:224) at proguard.OutputWriter.execute(OutputWriter.java:120) at proguard.ProGuard.writeOutput(ProGuard.java:391) at proguard.ProGuard.execute

Error while Setting of Proguard and Exporting APK

我的未来我决定 提交于 2019-11-28 11:29:35
I am doing first time proguard setting on My Android Project and Exporting My APK File but I got Following errors: (I also not found any proguard.cfg file in my project root) [2013-08-01 10:54:42 - SalesmanTracker] Note: there were 2 duplicate class definitions. [2013-08-01 10:54:42 - SalesmanTracker] Warning: com.google.common.collect.MinMaxPriorityQueue: can't find referenced field 'int UNSET_EXPECTED_SIZE' in class com.google.common.collect.MinMaxPriorityQueue$Builder [2013-08-01 10:54:42 - SalesmanTracker] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder

Why Proguard keeps Activity class in Android?

梦想的初衷 提交于 2019-11-28 11:18:21
I have applied ProGuard to my Android application. I'm using android-studio/sdk/tools/proguard/proguard-android.txt as a configuration file, changing nothing. In this file I can see the only statement regarding Activity : We want to keep methods in Activity that could be used in the XML attribute onClick -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } It follows from that the Activities class names are obfusctated by ProGuard while some methods are preserved as they are. This is understandable. However, in my application I then create an Activity

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

吃可爱长大的小学妹 提交于 2019-11-28 11:14:56
问题 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

ProGuard says Unsupported class version number [52.0] (maximum 51.0, Java 1.7) with sbt-proguard

流过昼夜 提交于 2019-11-28 10:45:09
I'm on Mac OS X 10.9.2 and sbt 0.13.3-SNAPSHOT (built from the sources), Java 8 and sbt-proguard 0.2.2 plugin. sbt 0.13.3-SNAPSHOT [jacek]> sbtVersion [info] 0.13.3-SNAPSHOT Java 8 $ /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -version java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode) project/plugins.sbt addSbtPlugin("com.typesafe.sbt" % "sbt-proguard" % "0.2.2") When I ran proguard:proguard in sbt shell it blew up with the following exception: [sbt-updates]> show proguard:proguard

How to setup PROGUARD for Jackson JSON Processor?

不羁岁月 提交于 2019-11-28 10:43:32
I am using Jackson JSON Processor for my app.Included this using compile 'com.fasterxml.jackson.core:jackson-databind:2.4.2' compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.2'. And my proguard configuration is. ## BEGIN -- Google Play Services proguard.txt -keep class * extends java.util.ListResourceBundle { protected java.lang.Object[][] getContents(); } # Keep SafeParcelable value, needed for reflection. This is required to support backwards # compatibility of some classes. -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { public static final *

Android Proguard configuration for the v7 Support Library ActionBar

白昼怎懂夜的黑 提交于 2019-11-28 10:41:47
I'm using the v7 Support Library to show an ActionBar on Android 2.x. It works well enough but I had to fix a few class/method not found errors after enabling Proguard. Are there any guidelines on which classes need to be preserved? So far I have these: -keep public class android.support.v7.internal.widget.ActionBarContainer -keep class android.support.v7.internal.widget.ActionBarView$HomeView -keep public class android.support.v7.internal.widget.ActionBarContextView It seems to work now but I'm not that confident that it won't crash at some stage because of some other supposedly internal

Android + Facebook Connect not working in release build

孤人 提交于 2019-11-28 10:19:23
问题 I have an Android application that allows the user to connect to his Facebook account and automatically make a post on his wall. All this is perfectly working with the debug build (using either the fallback webview dialog or the native application activity). I am using the latest Facebook Connect API for Android. When testing the release version of the application, I noticed that the fallback webview dialog does not allow to connect to Facebook (after entering the username/password, it shows

Android, javamail and proguard

时间秒杀一切 提交于 2019-11-28 10:16:17
I am trying to use javamail in my Android app, but proguard complains about a whole load of stuff that it cannot find. I have tried various remedies that I have found while searching the internet, but nothing seems to work. Has anyone got this thing working? Thanks. I have added some -dontwarn commands to the defauly proguard.cfg, and succeeded in eliminating all of the warning messages except this one: Warning: org.apache.harmony.awt.datatransfer.DataProxy: can't find referenced class [Ljava.awt.datatransfer.DataFlavor; This warning is not even in the same format as all the others. I am using

Proguard 4.7 with Eclipse SDK 3.7.1: Proguard fails with java.io.IOException - (Unknown verification type [25] in stack map frame)

和自甴很熟 提交于 2019-11-28 09:34:01
Update: This problem is fixed in new versions of Samsung's SPen SDK. I am trying to create a signed APK with Eclipse 3.7.1, running Proguard 4.7 as part of the process. However, I am unable to run Proguard on projects which include Samsung's SPen SDK 1.5 and get the following errors: [2012-01-16 14:16:45 - SDraw_Example1] Proguard returned with error code 1. See console [2012-01-16 14:16:45 - SDraw_Example1] java.io.IOException: Can't read [C:\Work\Mobile\EclipseWorkspace\SDraw_Example1\libs\libspen.jar] (Can't process class [com/samsung/sdraw/CanvasView.class] (Unknown verification type [25]