proguard

transformClassesAndResourcesWithProguardForRelease FAILED

孤街醉人 提交于 2019-12-02 14:34:56
I am trying to Build my Android application with Gradle in console. But getting below error about task ':app:transformClassesAndResourcesWithProguardForRelease': build.gradle: buildscript { repositories { jcenter() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject.buildDir } app/build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 24

Android ProGuard: Most Aggressive Optimizations

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 14:06:20
Android's official proguard documentation shows two primary optimizations: set minifyEnabled to true use proguard-android-optimize.txt instead of proguard-android.txt Are these two the most aggressive possible settings? I am writing an android library and need to make sure when people use my library that my code doesn't break. (I know there are rules I can put in my library to counter the proguard configuration set on the app that uses the library, but I don't want to do that if I don't have to.) AndreyICE Remember that the best ProGuard configuration - is a configuration with a minimum of

DynamoDbMapperException: No method annotated?

我们两清 提交于 2019-12-02 13:18:32
问题 In my android app, I use DynamoDb. I create a class, which is mapped with a table of database. App runs normally in debug. But if I export apk and run app, I get the DynamoDbMapperException: Caused by: com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.DynamoDBMappingException: No method annotated with interface com.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.DynamoDBHashKey for class class com.example.myclass. I use Eclipse and proguard to export apk. I guess proguard causes

Signed app crashing and unsigned apk running

允我心安 提交于 2019-12-02 12:36:19
问题 This issue might be related to some SO questions as i searched a lot here, but no any post helped me. My app running when it is unsigned but it crashes instantly when i run the signed APK. I put it debuggable true in gradle and checked i found this error logcat. java.lang.NoSuchFieldError: No static field REPLACE of type Lcom/a/a/a$a; in class Lcom/a/a/a$a; or its superclasses (declaration of 'com.a.a.a$a' appears in /data/app/com.aami.aruman.com-J1sPXkw9O_ZNL4zfcpqgMQ==/base.apk) at java

How to decode ProGuard's obfuscated code precisely?

泪湿孤枕 提交于 2019-12-02 11:51:48
问题 I am using ProGuard in my application and problem is when users report some problem to my console and I can't decode it precisely because of "Unknown source". Here is example of stacktrace: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at com.my.package.j.a(Unknown Source) at com.a.a.c.c.j(Unknown Source) at com.a.a.c.c.b(Unknown Source) at com.a.a.c.e.run(Unknown Source) at java.lang.Thread.run(Thread.java:856) Then I am using this code to decode it: ./retrace.sh -verbose

Proguard - getting NullPointerException on FloatingActionButton using findViewById

无人久伴 提交于 2019-12-02 09:01:39
I'm getting NullPointerException on FloatingActionButton using Proguard. This is the error:- E/AndroidRuntime: FATAL EXCEPTION: main Process: org.plabs.app.unews, PID: 2216 java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.material.animation.MotionTiming com.google.android.material.animation.MotionSpec.getTiming(java.lang.String)' on a null object reference at com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.createAnimator(:519) at com.google.android.material.floatingactionbutton.FloatingActionButtonImpl.hide(:382) at com.google

ProGuard Still Displays Full Activity Name

主宰稳场 提交于 2019-12-02 07:53:42
I am using Proguard and in my app I use this code System.out.println("ACTIVITY NAME IS " + activity.getLocalClassName()); It prints out the Activity name out, Iin release mode. I thought it is suppose to obfuscate all class names? Is this behavior normal? Ankit Aggarwal Yes this is a normal behaviour. Activity names are never obfuscated because these are referenced in manifest.xml. and android access these activities via reflection so their names cannot be changed. check this link https://stackoverflow.com/a/20620108/1320616 来源: https://stackoverflow.com/questions/36562915/proguard-still

Android Studio consumerProguardFiles for the library doesn't work

此生再无相见时 提交于 2019-12-02 06:33:04
问题 I'd like to use proguard on my library, but the file (rules) should be set inside the library. That means I don't want to set the rules w(hich belong to the library) explicitly in my app module. I found that there is something like consumerProguardFiles property. My settings: library gradle: buildTypes { debug { debuggable true minifyEnabled false } release { minifyEnabled true consumerProguardFiles 'proguard-rules.pro' } } app gradle: buildTypes { debug { applicationIdSuffix ".debug"

Weird behaviour while obfuscating a JAR with proguard

不想你离开。 提交于 2019-12-02 05:17:10
问题 I'm trying to obfuscate an Android JAR using Proguard (4.7, but 4.6 problematic too). I could break down the problem into a simple sample project. The problem: For some functions (unclear for what reasons) the argument names of exposed functions are lost, sometimes "scrambled" (really). I would like to focus on the "lost" part first, because the scrambled thing is much more weird... 1) I created a library project in Eclipse. Android SDK is 2.1-update 1 for some reasons The project is marked

Build Signed APK failed - Can't find common super class of [android/content/Context]

◇◆丶佛笑我妖孽 提交于 2019-12-02 02:17:00
This is Android Project. Using Normal Build was successfull, but using signed Key i got this error : Execution failed for task ':transformClassesAndResourcesWithProguardForFlavorRelease'. > java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [android/content/Context] (with 2 known super classes) and [com/onesignal/ADMMessageHandler] (with 1 known super classes) Any Idea ? Thanks in advance... I think Proguard causes this problem. Add this line to your Proguard file. -keep class com.onesignal.** { *; } And you should read this issue. It may help you. https: