proguard

NoClassDefFoundError when using proguard

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My Project contains some librarys (ViewPagerIndicator, ActionbarSherlock, SlidingMenu...). After using proguard, my application crash every time when starts. Below is error log java.lang.NoClassDefFoundError:android.support.v4.appp.FragmentActivity$2 at android.support.v4.app.FragmentActivity. (Unknown Source).... And here is my proguard script: -injars bin/classes -injars libs -outjars bin/classes-processed.jar -dontpreverify -repackageclasses '' -allowaccessmodification -optimizations !code/simplification/arithmetic -keepattributes

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

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

Android gradle signingConfig error

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I try signing my Application like this link . I write my signingConfigs settings but I get "Could not find property" error. This my build.gradle apply plugin : 'android' android { compileSdkVersion 19 buildToolsVersion '19.0.3' defaultConfig { minSdkVersion 11 targetSdkVersion 19 versionCode 1 versionName "Andy Warhol" } buildTypes { debug { proguardFiles getDefaultProguardFile ( 'proguard-android.txt' ), 'proguard-rules.txt' debuggable false jniDebugBuild false signingConfig signingConfigs . myconfig } release { proguardFiles

ProGuard breaks JavaFX application

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to obfuscate my JavaFX application but it fails. The generated result does not work and I do not understand why. The resulting jar just fails because the fxml file cannot load all imports anymore (ClassNotFoundException). The Deployment workflow: Build runnable jar (in IntelliJ knwon as an artifact) Obfuscate that jar with ProGuard Fix some issues in that jar that ProGuard fails to do 1) The minimal example application The example application 'GuardTest' is a IntelliJ project that consists of 3 classes. sample.Main: contains the

Android - Proguard duplicate zip entry error

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

ProGuard configuration for Guava with obfuscation and optimization

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Looking for a ProGuard configuration for Guava that will obfuscate and optimize, as the default one that is provided on the website does not. Not only that I cannot get it to export my apk, I keep getting: Warning : com . google . common . collect . MinMaxPriorityQueue : can 't find referenced field ' int UNSET_EXPECTED_SIZE ' in class com.google.common.collect.MinMaxPriorityQueue$Builder You should check if you need to specify additional program jars. 回答1: As of Guava 17.0 , this is what I needed in ProGuard config: - dontwarn

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

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

Proguard configuration for Android Support v4 22.2.0

孤人 提交于 2019-12-03 01:28:36
After updating dependencies on Gradle Android build to use com.android.support:support-v4:22.2.0 from local Maven extras repository (within SDK), Proguard started throwing these problems. Warning: android.support.v4.app.DialogFragment: can't find referenced class android.support.v4.app.DialogFragment$DialogStyle Warning: android.support.v4.app.FragmentTransaction: can't find referenced class android.support.v4.app.FragmentTransaction$Transit Warning: android.support.v4.view.ViewCompat: can't find referenced class android.support.v4.view.ViewCompat$ResolvedLayoutDirectionMode Warning: android

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

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 input ' ' So more information. seems the problem is

(Android) Proguard can't find dynamically referenced class javax.swing.*

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with Proguard and use of external libraries. My project compiles without errors and runs successfully on a real device, but only when I run it from Eclipse. Now I want to make an obfuscated release version so I did the following: ran "android update project -p ./" added proguard.dir=/home/stoned/android-sdk-linux_86/proguard4.5.1/lib proguard.config=/home/stoned/workspace/Fidoo/proguard.cfg when I run "ant release" I get the following: ... skipped many irrelevant messages ... -obfuscate: [mkdir] Created dir: /home/stoned