proguard

Google Drive API doesn't play well with ProGuard (NPE)

二次信任 提交于 2019-11-27 03:57:51
Currently, I'm having experience that, a piece of code, which makes use of Google Drive API is running fine without introducing ProGuard. However, after introducing ProGuard, I'm getting the following run-time error. at java.lang.Thread.run(Thread.java:856) Caused by: java.lang.NullPointerException at com.google.api.client.util.Types.getActualParameterAtPosition(Types.java:329) at com.google.api.client.util.Types.getIterableParameter(Types.java:309) at com.google.api.client.json.JsonParser.parseValue(JsonParser.java:546) at com.google.api.client.json.JsonParser.parse(JsonParser.java:350) at

Proguard warnings “can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry)”

六月ゝ 毕业季﹏ 提交于 2019-11-27 03:49:55
I'm using IntelliJ and running Proguard in debug mode but I can't seem to get rid of warnings such as: ProGuard: [MyApplication] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-v13.jar:META-INF/MANIFEST.MF]) This project has a couple of modules and android-support-v13.jar is being used on 2 of them. I thought that was the issue so I removed that library from the libs folder, added it as a project library and added the dependency to both modules. That didn't solve anything, the warning persists and I don't understand why. I know these warnings don't

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

蹲街弑〆低调 提交于 2019-11-27 03:46:36
问题 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

How to setup PROGUARD for Jackson JSON Processor?

时光怂恿深爱的人放手 提交于 2019-11-27 03:45: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.

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-27 03:00:44
问题 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

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

风流意气都作罢 提交于 2019-11-27 02:56:06
问题 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 ...

What is dex in Gradle

这一生的挚爱 提交于 2019-11-27 02:48:38
问题 What is the dex in Gradle or in Android? In Gradle, what's the meaning of dexoptions ? Sometimes my project does not compile because of some dexerrors. I need to activate ProGuard to compile my Android app. 回答1: In the standard java world: When you compile standard java code : the compiler produce *.class file. A *class file contains standard java bytecode that can be executed on a standard JVM. In the Android world: It is different. You use the java language to write your code, but the

admob ads are not shown with pro guard

无人久伴 提交于 2019-11-27 02:47:47
问题 I developed android app and I used admob sdk 6.2.1 for showing ads, and when I tested the app on my real device and on the emulator,ads are shown. but when I apply pro guard to my app and test it on my device(I tested it on another devices also) ads are not shown up, any help please! 回答1: Add this to your proguard: -keep class com.google.ads.** # Don't proguard AdMob classes -dontwarn com.google.ads.** # Temporary workaround for v6.2.1. It gives a warning that you can ignore 回答2: From the

Android application crashes after proguard

為{幸葍}努か 提交于 2019-11-27 02:41:18
问题 Application crashes after proguard (proguard generated by eclipse IDE). logcat stacktrace W/SupportMenuInflater(13657): Cannot instantiate class: android.support.v7.widget.ShareActionProvider W/SupportMenuInflater(13657): java.lang.ClassNotFoundException: android.support.v7.widget.ShareActionProvider W/SupportMenuInflater(13657): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) E/AndroidRuntime(13657): FATAL EXCEPTION: main E/AndroidRuntime(13657): java.lang

How to obfuscate my android project in eclipse IDE?

泪湿孤枕 提交于 2019-11-27 02:19:50
问题 I want minimize my app size as well as avoid the app from reverse-engineering. Can anybody help with simple answer? 回答1: Proguard is part of the android eclipse plugin, so you do not have to invoke it manually. You just need to activate it on your build. To enable ProGuard so that it runs as part of an Ant or Eclipse build, set the proguard.config property in the <project_root>/project.properties file. The path can be an absolute path or a path relative to the project's root. For some