proguard

How to include TypeReference ProGuard rule

让人想犯罪 __ 提交于 2019-12-05 18:04:06
I have already included following line to keep all files inside the package. -keep class com.fasterxml.** { *; } I am getting following exception. Caused by: java.lang.IllegalArgumentException: Internal error: TypeReference constructed without actual type information at com.fasterxml.jackson.core.type.TypeReference.<init>(SourceFile:36) I found the solution. Adding following find into ProGuard-rules or Config file solved the issue. -keepattributes Signature PS: Please voteup if you find this helpful 来源: https://stackoverflow.com/questions/28433281/how-to-include-typereference-proguard-rule

proguard causes a crash in google play services' ActivityRecognitionResult getMostProbableActivity

◇◆丶佛笑我妖孽 提交于 2019-12-05 17:53:09
I've recently released an app to the play store, and while it works perfectly fine without proguard, i've got an unexpected crash when i did decide to use it. I've looked here for the recommended proguard rules for google play services, i've also tried adding another line for this case. Here's what I got (the third line is for my app): -keep class * extends java.util.ListResourceBundle { protected Object[][] getContents(); } -keep class * implements com.google.android.gms.internal.ae -keep class * extends il.co.kix.minitasker.EntityBase Here's the crash report after doing a retrace android.os

Proguard keep interface method paramternames

ぐ巨炮叔叔 提交于 2019-12-05 15:41:02
I use -keepparameternames but it's not responding to interface. The interface's methond parameter is proguard. Thank you for your help. Proguard can preserve parameter names just fine. Unfortunately, javac does not preserve them by default. In order to emit necessary attributes, make sure to compile your code with full debugging info enabled. Java 8 javac does this with -g and -parameters flags. See this blogpost for some background. 来源: https://stackoverflow.com/questions/36685590/proguard-keep-interface-method-paramternames

Android Proguard Release causes not executing for-loop

删除回忆录丶 提交于 2019-12-05 15:37:12
In my Android app I am building in release mode. With Proguard activated an rare issue is caused, a specific for-loop never is executed: List<MyClass> objectList = getObjectList(); Log.d("Step 1", String.valueOf(objectList.size())); //Print size > 0 for(MyClass object: objectList) { Log.d("Step 2", object.toString()); //Never printed ... } The "Step 1" Log is printed correctly and objectList.size() > 0 . I don't understand what is causing "Step 2" Log is never printed (and all code into for-loop never executed). I am using the Android Device manager Logcat. In debug mode or with Proguard

Generate Signed APK: Errors while building APK Android Studio

喜你入骨 提交于 2019-12-05 15:26:26
问题 I am unable to generate Signed APK using minifyEnabled true and shrinkResources true App Level : build.gradle buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.1.0' } } apply plugin: 'com.android.application' repositories { mavenCentral() } android { compileSdkVersion 23 buildToolsVersion '22.0.1' defaultConfig { applicationId "......." minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" testInstrumentationRunner "android

android library project obfuscation

一笑奈何 提交于 2019-12-05 14:53:55
问题 Hi I developed one android library and Now I want to obfuscate it for redistribution. I develop my library with eclipse and android version 4.1.2. I tried obfuscating with eclipse and pro-guard. I do export and and also put proguard.config = proguard-project.text in project-properties but it not generating any jar file. It shows me result as its not allowing to library projects. So I don't know how to obfuscating android library project. I need help regarding how to obfuscating of android

How to set up ProGuard for Amazon IAP?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 10:54:41
问题 I'm trying to set up a basic ProGuard with Amazon IAP integrated. However when I'm trying to export my APK, I got the following errors: [2012-06-17 10:59:44 - sc] Proguard returned with error code 1. See console [2012-06-17 10:59:44 - sc] Unexpected error while performing partial evaluation: [2012-06-17 10:59:44 - sc] Class = [com/amazon/inapp/purchasing/KiwiResponseHandler$PurchaseResponseHandlerRunnable] [2012-06-17 10:59:44 - sc] Method = [run()V] [2012-06-17 10:59:44 - sc] Exception =

how to obfuscate the war file using proguard

前提是你 提交于 2019-12-05 10:54:40
I want to obfuscate a war file using proguard,how can i do so ? Please explain me the steps I'm puzzled by this question. As other Java obfuscators, Proguard obfuscates the compiled bytecode (.class files) by renaming every variable, method etc. it considers safe to rename. I suppose you know this and know how to use Proguard for class files since you specifically asked about it. If not, read the proguard manual. As for war files, you can extract the class files from war (or jar) by unzipping it. (yes, a war is a normal zip file). Then you can run them through Proguard and zip it up again. You

Does not work when use ProGuard

本秂侑毒 提交于 2019-12-05 09:34:54
问题 The logcat is below. what is wrong? 07-24 10:54:13.529: E/AndroidRuntime(12130): FATAL EXCEPTION: AsyncTask #3 07-24 10:54:13.529: E/AndroidRuntime(12130): java.lang.RuntimeException: An error occured while executing doInBackground() 07-24 10:54:13.529: E/AndroidRuntime(12130): at android.os.AsyncTask$3.done(AsyncTask.java:299) 07-24 10:54:13.529: E/AndroidRuntime(12130): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) 07-24 10:54:13.529: E/AndroidRuntime(12130)

How Proguard works in Intellij Idea?

梦想的初衷 提交于 2019-12-05 09:27:08
I am using IntelliJ IDea 11.1.3 for Android development and I must admit it is a wonderful tool. I have few doubts about how to use Proguard with the IDE. I have found the option of Run Progaurd under Open Module Settings -> Facets as in the image below Run Proguard need a location of Config File which is defaulted to proguard-project.txt. Next is a check box which says Include system proguard file . What System Proguard File is referred to in this checkbox option? Given all the configuration of Proguard is in proguard-android.txt in Android SDK. How does proguard config works in the IntelliJ