proguard

Proguard ParseException unknown option dump.txt

天涯浪子 提交于 2019-12-25 03:16:17
问题 I read alot of posts similar to this topic, but cant solve it anyway. Everytime I try to export my signed application with the obfuscator enabled, I get the following: [2011-12-23 13:26:35 - AppName] Proguard returned with error code 1. See console [2011-12-23 13:26:35 - AppName] proguard.ParseException: Unknown option 'android\AppName\proguard\dump.txt' in argument number 9 [2011-12-23 13:26:35 - AppName] at proguard.ConfigurationParser.parse(ConfigurationParser.java:170) [2011-12-23 13:26

What am i doing wrong in ProGuard configuration to remove log lines?

混江龙づ霸主 提交于 2019-12-25 00:17:35
问题 I am trying to remove logging lines from my apk and i use proguard for this. It doesn't remove the lines, what can be the problem? (i know that proguard is on, because i test the apk by decompiling to see if it is obfuscated) This is the full contents of my proguard config file: -assumenosideeffects class android.util.Log { public static boolean isLoggable(java.lang.String, int); public static int v(...); public static int i(...); public static int w(...); public static int d(...); public

Android compile ClassCastException with Proguard

眉间皱痕 提交于 2019-12-24 15:13:06
问题 I'm trying to build a project with proguard and I'm getting a compile time ClassCastException Error, having solved every notes and warnings. Been trying to solve this for quite a few time and can't find out what can be happening. The Project SDK is Android 4.4.2. The proguard file: # To enable ProGuard in your project, edit project.properties # to define the proguard.config property as described in that file. # # Add project specific ProGuard rules here. # By default, the flags in this file

Android proguard Ignore All Classes except of one

与世无争的帅哥 提交于 2019-12-24 14:11:12
问题 I need help with turning off all features and disable everything that Proguard do for all classes but one. One class should be obfuscated (contains security things). Any ideas? 回答1: -dontshrink -dontoptimize -dontobfuscate -keep,allowshrinking,allowoptimization,allowobfuscation class org.mypackage.MyClass 回答2: Use this Line into the proguard Enter all package name for disable things of proguard -dontwarn your_package_name.** 来源: https://stackoverflow.com/questions/13886100/android-proguard

how to avoid warnings in ProGuard GUI

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:22:01
问题 While trying to use ProGuard (5.3.2) to obfuscate a Automation framework getting lot of warnings i've resolved most of the warnings by adding respective library's but could not able to resolve below warnings. i have tried by adding com.hibernate-core jar but still getting same. Warning: com.test.utils.DBOperations: can't find referenced method 'org.hibernate.Session openSession()' in library class org.hibernate.SessionFactory Warning: com.test.utils.DBOperations: can't find referenced method

ADT v23 + SDK 23 - Android “L” - missing Proguard?

∥☆過路亽.° 提交于 2019-12-24 11:29:52
问题 Recently I've updated to the newest Android "L" SDK versions (and the ADT plugin of course). I've updated my app and wanted to export it, and then got this old, known message : invalid proguard configuration file path I remembered I had a similar problem before, and went back to it here. Indeed, I had the missing variable for some reason. However, I still got the same error. Then I went to the ".../tools" folder of the sdk , and didn't find any proguard file/folder. I've tried to re-install

Fabric edits the project.properties

走远了吗. 提交于 2019-12-24 11:24:45
问题 I have integrated Fabric in my app. When I open the project.properties file now, it says - This file is now handled by Fabric . Now I cannot see the following line anywhere in the project.properties file proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt I am using in app billing in my app and for that I need to add -keep class com.android.vending.billing in the proguard-project.txt Now I am confused as - project.properties has no line mentioning the proguard

ProGuard java.lang.NoSuchMethodException

余生颓废 提交于 2019-12-24 10:35:46
问题 After turning on the ProGuard I can't connect to IMAPSSLStore. Here's a bit from logcat window: A0 OK Thats all she wrote! i1mb111841581wil IMAP DEBUG: AUTH: XOAUTH IMAP DEBUG: AUTH: XOAUTH2 IMAP DEBUG: AUTH: PLAIN IMAP DEBUG: AUTH: PLAIN-CLIENTTOKEN DEBUG: protocolConnect login, host=imap.gmail.com, user=user***@gmail.com, password= IMAP DEBUG: Can't load SASL authenticator: java.lang.NoSuchMethodException: [class com.b.b.b.a.i, class java.lang.String, class java.util.Properties, boolean,

Can proguard leave out the unused classes of the libraries?

谁说我不能喝 提交于 2019-12-24 09:28:15
问题 I have a java application using the pdfbox library, which makes 10mb. I use just a few classes of this library. I thought that ProGuard would generate a standalone jar for my application. But the jar generated by ProGuard still needs the pdfbox.jar in the /lib folder to run. Am I doing something wrong? How could I achieve my goal? (leaving out the 99% of the library classes I don't use). Note after comments : - the original jar and its libraries are generated with Netbeans. I first used

Proguard configuration on a Enterprise Java Application

老子叫甜甜 提交于 2019-12-24 08:58:38
问题 I'm trying to use proguard in a Maven project this is a obfuscate plugin, when I run it I have an error: Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project MavenEnterpriseApp-ear: Obfuscation failed (result=1) -> [Help 1] when I run maven with -e or -X I have: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project MavenEnterpriseApp-ear: Obfuscation failed