proguard

ProGuard : Obfuscated jar is not working but un-obfuscated jar is working

自闭症网瘾萝莉.ら 提交于 2019-12-10 17:24:26
问题 I have one project which is part of another one. I am using maven build process to make project's jar. I used ProGuard to obfuscate it. I have some controllers which handles UI requests. Q. My problem is un-obfuscated jar is working. All controllers are getting hit, but obfuscated jar is not working (none controller gets hit). Whats the issue with obfuscation ? My Servlet.XML : <context:component-scan base-package="myPackage.controllers" /> <mvc:annotation-driven /> Sample controller code :

Migration issues concerning OpenJDK 11 & OpenJFX 11 (& Proguard)

青春壹個敷衍的年華 提交于 2019-12-10 17:20:15
问题 we are currently migrating a Java application from Oracle JDK 8 (application code delivered by JNLP) to OpenJDK 11 (application code delivered as runnable along with a Java Runtime). Although we found more or less a working solution in our test environment we still have following issues: Our application needs JavaFX and we want to use jlink for building. Is it recommended to use the OpenJFX jmods supplied on https://gluonhq.com/products/javafx to build an appropriate jlink image using OpenJDK

Proguard doesnt obfuscate Class name, only methods are obfuscated

我只是一个虾纸丫 提交于 2019-12-10 16:46:30
问题 I try using Proguard in android studio, but seems like Proguard is not obfuscating the class name, for example, my app structure, and the config: and config but when i try trigger the exception in the app: the exception is listed in ADB console: only the methods are obfuscated, the MainActivity.class is not 回答1: This is an expected behaviour because the class is an activity ! All classes that are mentioned in AndroidManifest.xml have to keep their names (activities, services, providers,

Circular reference error in firebase with R8

我怕爱的太早我们不能终老 提交于 2019-12-10 16:39:27
问题 We are getting following error with Firebase and R8. [CIRCULAR REFERENCE:java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Multiple entries with same key: Method com.google.firebase.iid.FirebaseInstanceId.zza Proto LLL com.google.android.gms.tasks.Task java.lang.String java.lang.String=Encoded method Method com.google.firebase.iid.FirebaseInstanceId.zza Proto LLL com.google.android.gms.tasks.Task java.lang.String java.lang.String and Method com.google.firebase.iid

org.apache.commons.collections.BeanMap: can't find referenced class java.beans.Introspector

99封情书 提交于 2019-12-10 15:39:19
问题 I am trying to use Proguard for obfuscating my Android app. Also I am using IntelliJ Idea 11.1.3 to build the release signed APK with Run Proguard option selected in Open Module Settings -> Facets -> Compiler -> Run Proguard. The application is compiling without any error when I don't use Proguard but with Proguard I am getting the below errors Error:[MyApp] Warning: org.apache.commons.collections.BeanMap: can't find referenced class java.beans.Introspector Error:[MyApp] Warning: org.apache

Using MultiDex in Android App runs ProGuard twice and only second time with Warnings/Notes?

好久不见. 提交于 2019-12-10 15:37:05
问题 I use MultiDex and ProGuard in my Android app. When I run my app it turns out that proguard runs twice. Here are the tasks after which proguard runs: :app:transformClassesAndResourcesWithProguardForRelease ProGuard, version 5.2.1 ... Initializing... Shrinking... Obfuscating... Writing output... and later: :app:transformClassesWithMultidexlistForRelease ProGuard, version 5.2.1 Here is my app's build.gradle file: buildscript { repositories { maven { url 'https://maven.fabric.io/public' } }

Can't generate signed apk - TaskExecutionException failed

跟風遠走 提交于 2019-12-10 15:16:13
问题 I'm in the final steps of making my app live, when I try build and generate signed apk I get this error log from ProGuard org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org

Unable to Setup Wiremock on Android Project with Proguard (Duplicate Zip Entry error)

女生的网名这么多〃 提交于 2019-12-10 15:12:37
问题 I've been reading all posts now and at this time I'm really struggling. I was trying to use WireMock in my android project to help on testing. However, Proguard has always something to say. My gradle dependencies file is this: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') // Fine Tuned Google Play Services compile "com.google.android.gms:play-services-ads:${PLAY_SERVICES_VERSION}" compile "com.google.android.gms:play-services-plus:${PLAY_SERVICES_VERSION}" compile "com

Abnormal behavior while using proguard

人走茶凉 提交于 2019-12-10 15:12:32
问题 My Original code is : private String hello; private int i = 0; public void test() { if (i == 0) { hello = "asdas"; } else { hello = "asasvfasfas"; } } After Obfuscating with proguard : private String a; private int c = 0; public void a() { if (this.c == 0); for (this.a = "asdas"; ; this.a = "asasvfasfas") return; } In project properties : proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt My proguard-project.txt file is empty, so I guess it should be using the

Xamarin/Visual Studio 2015: Custom Proguard configuration

蹲街弑〆低调 提交于 2019-12-10 13:34:47
问题 I need to make a customized Proguard configuration. However I cannot find out how to do that. When building a new configuration file is copied into the /obj/release/proguard folder. How can this configuration file be customized? 回答1: Just put your Proguard.cfg into your Project Right click on Proguard.cfg > "Build Action" > "ProguardConfiguration" 回答2: The above answer is 100% correct on how to add the file. To make sure you file gets picked up you can check the output logs, it will contain