proguard

ProGuard: “java.exe” exited with code 1 after adding ModernHTTPClient

坚强是说给别人听的谎言 提交于 2019-11-28 02:21:30
问题 In the Xamarin.Forms project I added ModernHTTPClient library and now the ProGuard step breaks with error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2025,3): error MSB6006: "java.exe" exited with code 1. (Previously, I had some issues with ProGuard but was able to get it to work while targeting Android 7.1 by upgrading ProGuard to latest version.) Some of the details from the log file are below. 2> Proguard (TaskId

Proguard breaking audio file in assets or raw

限于喜欢 提交于 2019-11-28 01:01:28
问题 I have an activity that plays a beep sound with MediaPlayer that works fine and used to work fine even in the proguarded production version. With the latest release it now suddenly crashes with Caused by: android.content.res.Resources$NotFoundException: File res/raw/beep.ogg from drawable resource ID #0x7f060000 at android.content.res.Resources.openRawResourceFd(Resources.java:994) at android.media.MediaPlayer.create(MediaPlayer.java:855) at com.digikey.mobile.activity.CaptureActivity

Does Proguard remove comments from Java source

≯℡__Kan透↙ 提交于 2019-11-28 00:41:35
问题 I am using the code from proguard-android.txt file below # This is a configuration file for ProGuard. # http://proguard.sourceforge.net/index.html#manual/usage.html -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -verbose # Optimization is turned off by default. Dex does not like code run # through the ProGuard optimize and preverify steps (and performs some # of these optimizations on its own). -dontoptimize -dontpreverify # Note that if you want to enable optimization, you

Proguard and error

江枫思渺然 提交于 2019-11-27 23:33:16
I use this proguard file: -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/* -optimizationpasses 10 -allowaccessmodification -mergeinterfacesaggressively -overloadaggressively -assumenosideeffects class android.util.Log { *; } -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content

Error on using proguard with Android Facebook sdk 3.0

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 23:15:15
问题 Warning: I removed a lot of "old text" to keep the question more clean. Just check the history if needed. I'm using proguard to both shrink and obfuscate an app that uses the facebook sdk 3.0 (I'm using the sdk-version-3.0.2.b tag). I'm not using a JAR file. Instead, I imported the sdk inside my workspace, as taught by the documentation. At a certain point in the execution, the app loads a PlacePickerFragment to let the user choose the place where he is. To code this, I follow exactly the

How to config my proguard-project.txt file to remove just Logs

回眸只為那壹抹淺笑 提交于 2019-11-27 20:46:21
This is the code i am using right now in the proguard-project.txt # This is a configuration file for ProGuard. # http://proguard.sourceforge.net/index.html#manual/usage.html -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -verbose # Optimization is turned off by default. Dex does not like code run # through the ProGuard optimize and preverify steps (and performs some # of these optimizations on its own). -dontoptimize -dontpreverify # Note that if you want to enable optimization, you cannot just # include optimization flags in your own project configuration file; # instead you

ProGuard for Android and GSON

你离开我真会死。 提交于 2019-11-27 20:26:17
I'm setting up ProGuard for my Android project. My project also uses GSON. I've researched ProGuard configurations for compatibility with GSON and Android and came across this example offered by google-gson https://code.google.com/p/google-gson/source/browse/trunk/examples/android-proguard-example/proguard.cfg . ProGuard config copied below: ##---------------Begin: proguard configuration common for all Android apps ---------- -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -dontpreverify -verbose -dump class_files.txt

Proguard.cfg Missing

六眼飞鱼酱① 提交于 2019-11-27 19:49:41
I made the mistake of upgrading eclipse today and now can't get my a new Android project to get going. I get the message Proguard.cfg (the file can't be found). Where is this thing I can't seem to find it? Is it possible to get rid of it I don't need Obfuscation in this project... Thanks If you really don't need Proguard to obfuscate your release builds, you can remove the following line from the default.properties file in your project root folder: proguard.config=proguard.cfg If you want a proguard.cfg template, you can create a new Android project from scratch with Eclipse's project wizard,

Android Proguard, removing all Log statements and merging packages

故事扮演 提交于 2019-11-27 19:06:42
I have about 5 packages in my project, is it possible to merge all the packages into one large package, I want to do this to make hacking more difficult. How do I remove all references to Log.e Log.d etc. in my source code using proguard. (I have the eclipse ADT with proguard integrated already). Update: Looks like part 2 can be done like this -assumenosideeffects class android.util.Log { public static *** d(...); public static *** v(...); } The option -repackageclasses moves obfuscated classes into a single given package: http://proguard.sourceforge.net/manual/usage.html#repackageclasses You

Eclipse crashes with a GC overhead limit exceeded error

我与影子孤独终老i 提交于 2019-11-27 18:23:34
It's the first time I am using Proguard, I've noticed that if you add many custom rules to proguard-project.txt it takes obviously much more time for building. That's cause Eclipse to crash reporting a GC overhead limit exceeded and then I have to force the shut down of java because the editor continues to pop out error and alert dialogs. Is there any way to avoid these continuous crashes on Eclipse and so fix the problem reported here too? Silvio Fixed, I read all the others forum posts about the problem but no one said how to fix it on Eclipse. I found the fix here EDIT: in case the link