proguard

can't generate signed APK from Android studio “Execution failed for task ':packageRelease'”

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using Android Studio 1.2.2 and tried to generate APK with proguard setting. But I can't do it and got below error message. "Execution failed for task ':packageRelease'. Unable to compute hash of /Users/Documents/projectX/app/build/intermediates/classes-proguard/release/classes.jar " The proguard setting is just simple. -dontshrink -dontoptimize -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose And the gradle file is below. apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google

Android proguard obfuscated code is causing NullPointerException when it really shouldn't be

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have distributed an application on the Android Marketplace. I am getting error reports back in from a small handful of users (maybe 2%) where they are getting NullPointerExceptions where it doesn't make logical sense. I have never been able to replicate this myself. The code is relatively straightforward and is a common code path that EVERY user has to follow. I've actually taken every separate line of code that could possibly be creating the NPE and wrapped it in a try-catch block and throw a custom runtime exception, but I'm still

Android Proguard warning: can't write resource (Duplicate zip entry)

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I enabled proguard and got: Warning:can't write resource [META-INF/LICENSE.txt] (Duplicate zip entry [commons-io-2.4.jar:META-INF/LICENSE.txt]) Warning:can't write resource [META-INF/NOTICE.txt] (Duplicate zip entry [commons-io-2.4.jar:META-INF/NOTICE.txt]) Warning:can't write resource [META-INF/LICENSE.txt] (Duplicate zip entry [commons-collections-3.2.1.jar:META-INF/LICENSE.txt]) Warning:can't write resource [META-INF/NOTICE.txt] (Duplicate zip entry [commons-collections-3.2.1.jar:META-INF/NOTICE.txt]) Warning:can't write resource [META

Proguard ignores config file of library

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm facing a really weird problem for days now... I have a Gradle app with two modules, one main module and one library module. In both modules I have declared a proguard-rules.pro file path which is correct In both .gradle files I have minifyEnabled true Also, the proguard-rules.pro of the library seems to be completely ignored. It doesn't matter what I declare there, it is not used and the result is always the same (always decompiled to view result). It's obfuscated with the default settings. I've used an invalid proguard file

Android ProGuard error with org.xmlpull.v1.XmlPullParser

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: When my application is build with ProGuard, it fails with following message. I use a default proguard.cfg generated by Android SDK with some -libraryjars. What can I do for it? [ 2011 - 03 - 17 09 : 27 : 04 - MyProject ] Proguard returned with error code 1. See console [ 2011 - 03 - 17 09 : 27 : 04 - MyProject ] Note : there were 4247 duplicate class definitions . [ 2011 - 03 - 17 09 : 27 : 04 - MyProject ] Warning : library class android . content . res . XmlResourceParser extends or implements program class org . xmlpull . v1 .

ProGuard: Warning: butterknife.internal.InjectViewProcessor:

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I faced this error during generating apk using idea13 ProGuard: Warning: butterknife.internal.InjectViewProcessor: can't find superclass or interface javax.annotation.processing.AbstractProcessor 回答1: Even though you didn't post an actual question, I'm assuming you want that warning gone. Add the following lines to your ProGuard configuration: -dontwarn butterknife.internal.** -keep class **$$ViewInjector { *; } -keepnames class * { @butterknife.InjectView *;} source 回答2: If anyone does face an issue with Proguard and Butterknife, use the

Using Proguard for Android in Eclipse got Error

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have taken a fresh install of Eclipse and all the latest Android tools and want to use Proguard on existing project, but for now I have created a new blank one. I have added a proguard.cfg file to my project added proguard.config=proguard.cfg to my default.properties Now when I try to export I get the following error [2010-12-12 10:36:35 - ApplicationTest] Proguard returned with error code 1. See console [2010-12-12 10:36:35 - ApplicationTest] 'C:\Program' is not recognized as an internal or external command, [2010-12-12 10:36:35 -

How to create an obfuscated jar file?

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I go about creating an obfuscate jar file? As of now I can easily export my Android lib project to a jar and use it. How do I obfuscate the jar file? My end goal is to allow others to use my lib.jar in their projects. I just want to protect the code as much as I can... :) 回答1: Turns out it is possible and it's not that hard. After 3hrs of trying I finally figured it out! Android provides a convenient proguard GUI under: android-sdk\tools\proguard Using the GUI you just select the in.jar and the out.jar. Than you must select the

ProGuard + Maven with Java 7

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to make ProGuard part of our Maven build process. The problem is that the official Maven plugin is using ProGuard 4.3, which doesn't support Java 7. Is there any easy way to make the plugin use Proguard 4.8 instead? I've tried specifying the dependency for the plugin but ProGuard seems to have a new structure for Maven-modules (proguard-base, proguard-parent etc) so the plugin can't use any version >4.4. Here's how my current pom looks: <plugin> <groupId>com.pyx4me</groupId> <artifactId>proguard-maven-plugin</artifactId>

How to configure Proguard using Gradle?

做~自己de王妃 提交于 2019-12-03 02:37:14
I recently switched to Android Studio / Gradle and I am wondering, how ProGuard can be configured in the build.gradle script. I am new to Gradle, but I thought, configuring the Proguard task would be a good idea (as documented in the Proguard project documentation. I want to configure Proguard to save the mapping in different files for different product flavors with the 'printmapping' setting task myProguardTask(type: proguard.gradle.ProGuardTask) { printmapping file("test.txt") } but it crashes on task-execution with Gradle: Execution failed for task ':module:proguardFlavorVariant'. >