proguard

Questions about Proguard

℡╲_俬逩灬. 提交于 2019-12-11 15:49:41
问题 I've obfuscated my application using ProGuard 4.7. After that I unpacked my application using Dex2Jar. And I was not happy with the result of obfuscation. And I have the following questions: 1.. How to mask a string constant? (May be using this option: a string constant is loaded from the server. I know that this will affect performance, but the defense primarily) 2.. How to rename the standard class names? For example: after obfuscation standart class names remain unchanged. (can make copies

Strange error with GLIDE while loading image on production build

北城以北 提交于 2019-12-11 15:48:08
问题 After applying ProGuard on my production app. We are facing the following error on loading images from URLs E/vw: Glide failed to load image with exception: UNABLE TO LOAD PUBLICSUFFIXES.GZ RESOURCE FROM THE CLASSPATH. java.lang.IllegalStateException: Unable to load publicsuffixes.gz resource from the classpath. Finally, we tried keeping the whole Glide sources in the progaurd configuration with the following command -keep public class * implements com.bumptech.glide.module.GlideModule -keep

Android project failed to export apk after proguard obfuscate

早过忘川 提交于 2019-12-11 15:38:55
问题 Using Android SDK Tools R15 and ADT 15 with Eclipse. But I'm stuck by Conversion to Dalvik format failed with error 1 when export the project to apk file with proguard on(It runs sucessfully with proguard off). And I found this site. Then I clean and rebuild my project but it makes no sense. And I have also tried to create a new Android project with all referenced jars of my project and then use the same proguard.cfg to obfuscate the code and export. But everything works well in the test

NullPointerException with proguard

被刻印的时光 ゝ 提交于 2019-12-11 15:38:09
问题 I'm using Proguard with my apps and I'm getting NullPointerExceptions sent to my Developer Console for random users. When I do a ReTrace, it seems to be an issue with the AdView I'm using. The confusing thing is, the error is happening in my Service which, obviously, doesn't use ads. Not sure if Proguard is doing something to the code or what. This is the de-obfuscated stack trace: java.lang.NullPointerException at com.google.ads.internal.AdWebView$1.a(Unknown Source) at com.app.base

Android proguard enabled apk not connecting to azure server

牧云@^-^@ 提交于 2019-12-11 14:16:57
问题 I have been looking a solution since last week. I have an application which is having a connection with windows azure server. I need to give my apk to clients so I am trying to encrypt my apk before the deployment. Right now I am using proguard and I can create the apk without any warning. But after installation,The device is not connecting to the server. Without proguard it is connecting. here is my on my MainActivity The Toast is displaying with an exception "java.lang

How to configure ProGuard to keep names of inner class members?

本秂侑毒 提交于 2019-12-11 13:59:54
问题 I want to obfuscate my app with ProGuard and I also want member of some inner classes to keep their names. This is because I use these classes in Jackson for converting to and from JSON. My source: // this class mainly serves as a container for a group of related inner classes public class MyOuterClass { public class IDontWantToKeepThisClassName1 { public String IWantToKeepThisName1; public float IWantToKeepThisName2; } public class IDontWantToKeepThisName2 { public

NullPointerException: ProGuard, Spring Boot

余生颓废 提交于 2019-12-11 13:02:50
问题 I'm getting null pointer exception and have no ideas on how to overcome this issue and obfuscate the code. Do you have any ideas? I'm working to obfuscate some libraries of a [Maven] Spring-Boot project with Proguard (proguard + proguard-maven-plugin) Stack trace: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.wvengen:proguard-maven-plugin:2.0.11:proguard (proguard) on project XXX: Execution proguard of goal com.github.wvengen:proguard-maven-plugin:2

“unknown option: --output” after updating Android SDK from revision 12 to revision 13

笑着哭i 提交于 2019-12-11 12:48:04
问题 I've just updated my android development tools to revision 13. This all went smoothly and I can continue to build in eclipse as usual. However once I try to de a release build with ant my build fails with the message "unknown option: --output". Further Info: I'm running 32bit Eclipse / Java on 64 bit windows. The issue occurs only when running a build from the command line and the build worked before I updated the sdk from revision 12 to 13. Here is the relevant output from "ant release"

ProGuard: Problems using obfuscated JAR

巧了我就是萌 提交于 2019-12-11 11:37:50
问题 I have a JAR myapp-logic with classes, some of which are obfuscated and some non-obfuscated. I want to use myapp-logic in a web application called myapp-web . When I add the obfuscated version of myapp-logic to the dependencies of myapp-web , I get following error message (when I run mvn clean compile ): EntryPageController.java:[55,41] incompatible types found : java.lang.Object required: ru.altruix.ccp.logic.api.simfacade.SimulationFacade The code with the error looks like this: final

gradle generate error when minifying the code

妖精的绣舞 提交于 2019-12-11 11:34:24
问题 when i try to set the minifyEnabled to true and try to sync gradle file i receive the follwoing error: Error:Cause: com/android/build/gradle/tasks/AndroidProGuardTask why i am receiving this error and how to solve it, I cant enable proGaurd in Android Studio. build.gradle : buildTypes { debug { debuggable true } release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } 回答1: are you using any external library files in your project? If