proguard

PerferenceActivity with PreferenceFragment fails on device with proguard okay without proguard

杀马特。学长 韩版系。学妹 提交于 2020-01-03 17:06:06
问题 I'm coding my first app targeting ICS (4.0.3 - level 15). I get Action Bars and I think they're great. But I'm trying fragments for the first time, and I'm still not sure if I like 'em or not. The app I'm currently working on doesn't need fragments since it has pretty undynamic on screen requirements. Standard activities are working fine. The big However is that I have to use PreferenceActivity with PreferencFragment and Headers. The old form of the activity straight to the preference

Proguard keep classmembers

泄露秘密 提交于 2020-01-03 07:34:06
问题 How can I tell proguard to keep my classmembers? I need them for JSON compatibility... This is my class: package com.tools.app.holiday; public class Holiday { private String name; private Calendar dateFrom = Calendar.getInstance(); private Calendar dateTo = Calendar.getInstance(); ... I already tried, but it doesnt work... -keepclassmembers class com.tools.app.holiday.Holiday -keepclassmembers class com.tools.app.holiday.Holiday *{ private String name; private Calendar dateFrom; private

Could not find artifact com.sun.kvem:kenv:jar:2.2 in central

半腔热情 提交于 2020-01-03 04:57:07
问题 I am trying to compile the source code of Proguard 4.6 in a maven project. The code has a dependency on: <dependency> <groupId>com.sun.kvem</groupId> <artifactId>kenv</artifactId> <version>2.2</version> <optional>true</optional> <type>jar</type> </dependency> When I try compile it, I get: Failed to execute goal on project proguard: Could not resolve dependencies for project net.sf.proguard:proguard:jar:4.6: Could not find artifact com.sun.kvem:kenv:jar:2.2 in central (http://repo1.maven.org

How to configure ProGuard to respect Jackson model?

笑着哭i 提交于 2020-01-03 03:24:08
问题 The following class describes a model I read from a .json file using Jackson 2.2. public class Product { public String name; public int width; } The Gradle build process invokes ProGuard to shrink and obfuscate the release build. When I start the application the following error message occurs: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "name" (class com.example.b.c), not marked as ignorable (0 known properties: ]) How can I configure ProGuard or

Proguard google play services jar

て烟熏妆下的殇ゞ 提交于 2020-01-02 23:13:28
问题 I'm trying to obfuscate google play services jar with proguard. I tried two versions of the proguard config file. First one contains -keep class ** { public protected *; } And the jar stays not obfuscated. It looks ok. Second one contains -keep class com.** { public protected *; } And proguard deletes everithing. I get an error: Error: The output jar is empty. Did you specify the proper '-keep' options? Why is it empty, as the main google play services package is com.google.android.gms? 回答1:

Proguard google play services jar

感情迁移 提交于 2020-01-02 23:13:01
问题 I'm trying to obfuscate google play services jar with proguard. I tried two versions of the proguard config file. First one contains -keep class ** { public protected *; } And the jar stays not obfuscated. It looks ok. Second one contains -keep class com.** { public protected *; } And proguard deletes everithing. I get an error: Error: The output jar is empty. Did you specify the proper '-keep' options? Why is it empty, as the main google play services package is com.google.android.gms? 回答1:

Is it safe to ignore these proguard notes for kotlin?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 09:57:14
问题 I don't understand why I'm getting these notes from proguard and if I've to do anything to address them. Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.jdk8.JDK8PlatformImplementations Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE8PlatformImplementations Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal

Export signed Android apk with Proguard

前提是你 提交于 2020-01-02 08:49:45
问题 What I am trying to do: obfuscate and export a signed app from Eclipse. The problem: I am getting the same console error, no matter what I write on Project.properties and on proguard-android.txt . it makes me have no clue of what´s going on and I´m starting to feel miserable. What I could do: I could export the project without using Proguard. I could export a similar project that didn't use ABS (Action Bar Sherlock) using Proguard My questions: Is it possible that eclipse is not using at all

How to inspect proguard process, so I know what takes so long?

北城余情 提交于 2020-01-02 08:13:01
问题 My release build is stuck on :android:transformClassesAndResourcesWithProguardForRelease for 10 minutes. Gradle console does not print anything. How do I make it print what proguard is doing, so I know where the problem could be? 回答1: You need to add the following to your proguard configuration file: -verbose Additionally, you need to enable info logging for your gradle build via gradle -i <target> where target is the actual task your are running (most likely assembleRelease). Then you will

How to inspect proguard process, so I know what takes so long?

亡梦爱人 提交于 2020-01-02 08:12:10
问题 My release build is stuck on :android:transformClassesAndResourcesWithProguardForRelease for 10 minutes. Gradle console does not print anything. How do I make it print what proguard is doing, so I know where the problem could be? 回答1: You need to add the following to your proguard configuration file: -verbose Additionally, you need to enable info logging for your gradle build via gradle -i <target> where target is the actual task your are running (most likely assembleRelease). Then you will