android-proguard

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

MobileFirst 7.1 Progurd getting Error return code 1

大兔子大兔子 提交于 2019-12-02 10:43:46
I'm using mobilefirst 7.1 environment in eclipse. I just create sample hybrid application and add android environment. then i take unsigned apk at the time i'm getting below error. kindly help me for this. Thank you :) Progurd-project.txt # 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 are appended to flags specified # in ${sdk.dir}/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the ProGuard

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

Proguard Issue - Classes.jar error

丶灬走出姿态 提交于 2019-12-02 07:24:28
问题 I have seen all of SO also followed few steps given but I couldn't fix the issue. Strangely I am still getting this issue: 1 error and 176 warning when I try to build my project. Note: there were 251 duplicate class definitions. (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass) Warning:com.loopj.android.http.HttpDelete: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase Warning:com.loopj.android.http.HttpGet: can't find

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"

Proguard Issue - Classes.jar error

旧巷老猫 提交于 2019-12-02 00:50:21
I have seen all of SO also followed few steps given but I couldn't fix the issue. Strangely I am still getting this issue: 1 error and 176 warning when I try to build my project. Note: there were 251 duplicate class definitions. (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass) Warning:com.loopj.android.http.HttpDelete: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase Warning:com.loopj.android.http.HttpGet: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase Warning:com.loopj

Reduce apk size android

血红的双手。 提交于 2019-12-01 19:48:53
I am facing a problem with app size in android. The scenario is, I developed my android app in Android Studio 2.0 and the size of apk was 23 MB. After that, I upgraded my IDE to android studio 2.2 and with little code modification the size of apk boosted to 51 MB. I tried with prorogued and Lint but no advantage. Can Someone help me to tackle the issue. 1) Replace all of Images,Icons with vector drawable 2) Turn on pro guard like following goto build.gradleapp level and put these lines **shrinkResources true minifyEnabled true** 3) Remove unused classes,drawable and methods and strings and use

Android + Proguard + Apache POI

让人想犯罪 __ 提交于 2019-12-01 18:16:25
Someone was able to get the Apache POI library to work after obfuscation. I read a lot of information, tried different methods, but still get the error: a.a.b.a: Provider com.bea.xml.stream.EventFactory not found org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller.<clinit>(Unknown Source) at org.apache.poi.openxml4j.opc.OPCPackage.init(Unknown Source) at org.apache.poi.openxml4j.opc.OPCPackage.<init>(Unknown Source) at org.apache.poi.openxml4j.opc.Package.<init>(Unknown Source) at org.apache.poi.openxml4j.opc.ZipPackage.<init>(Unknown Source) at org.apache.poi

Proguard minifyEnabled true for debug build, not working on pre-Lollipop

﹥>﹥吖頭↗ 提交于 2019-12-01 16:30:39
The methods count of my app is higher than the 64k limit, so I'm using Proguard to reduce it. Everything works fine for release builds. Debug builds, on the other hand, are successful only for Lollipop+ devices. When launching on pre-Lollipop devices I always have the infamous error: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 This is what I have in the app level gradle file: buildTypes { debug { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } release { shrinkResources true minifyEnabled true