proguard

Android Studio - ProGuard “java.io.IOException …bin\\classes (No such file or directory)”

北慕城南 提交于 2019-11-29 06:41:49
So I am running ProGuard for the first time and I am getting a weird error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:proguardRelease'. > java.io.IOException: Can't read [C:\Users\Some\workspace\MyApp\app\bin\classes] (No such file or directory) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Here is my gradle: apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion '19.1.0' defaultConfig { minSdkVersion 16 targetSdkVersion 19 versionCode 1 versionName "1.0"

ProGuard error can't find superclass or interface org.apache.http.entity

落爺英雄遲暮 提交于 2019-11-29 05:55:35
问题 I get always with ProGuard following error: [2012-05-19 17:50:13 - xxx] Warning: there were 13 unresolved references to program class members. [2012-05-19 17:50:13 - xxx] Your input classes appear to be inconsistent. [2012-05-19 17:50:13 - xxx] You may need to recompile them and try again. [2012-05-19 17:50:13 - xxx] Alternatively, you may have to specify the option [2012-05-19 17:50:13 - xxx] '-dontskipnonpubliclibraryclassmembers'. [2012-05-19 17:50:13 - xxx] Error: Please correct the above

How do you interpret a deobfuscated Android crash report?

依然范特西╮ 提交于 2019-11-29 04:51:22
I downloaded a crash report from my app's Google Play admin area, ran it through retrace.sh to deobfuscate the Proguard mapping, and it produced the output below. Questions: What is Unknown Source? showHeader , showPhoto , etc. are indeed methods in my SummaryFragment class, but why are they listed in the order shown? These methods do not follow any sort of logical or execution order in my code. In which method was the NPE actually thrown? Caused by: java.lang.NullPointerException at com.myapp.SummaryFragment.selectMenuItemAuth(Unknown Source) showHeader photoButtonClicked showPhoto

NoClassDefFoundError when using proguard

前提是你 提交于 2019-11-29 04:21:40
My Project contains some librarys (ViewPagerIndicator, ActionbarSherlock, SlidingMenu...). After using proguard, my application crash every time when starts. Below is error log java.lang.NoClassDefFoundError:android.support.v4.appp.FragmentActivity$2 at android.support.v4.app.FragmentActivity.<init> (Unknown Source).... And here is my proguard script: -injars bin/classes -injars libs -outjars bin/classes-processed.jar -dontpreverify -repackageclasses '' -allowaccessmodification -optimizations !code/simplification/arithmetic -keepattributes *Annotation* -verbose -keep public class * extends

Obfuscating WAR file with Proguard

时光怂恿深爱的人放手 提交于 2019-11-29 03:54:44
I want to obfuscate my web application built as WAR archive, as this sensitive application in first time deployed outside our data center. I tried to use the Proguard GUI tool to obfuscate the input war, with all the service jar required for the UI application, with other external dependencies. Though the Proguard runs successfully with some warnings, ex., duplicate definition of library class [javax.servlet.UnavailableException], the output war contains no classes, but has lib with the library jars and web.xml files. Any steps I mess? Any right document on this? I would appreciate if anyone

Android multidex not supporting with proguard

 ̄綄美尐妖づ 提交于 2019-11-29 03:51:20
I updated all my built tools, supportlibrary and google Play services. But still I am getting the following error: Error:Execution failed for task ':app:shrinkReleaseMultiDexComponents' java.io.IOException: The output jar [app\build\intermediates\multi-dex\release\componentClasses.jar] must be specified after an input jar, or it will be empty. I am able to fix this by setting minifyEnabled to false , but that is not what I want. Does anyone know how to fix it? Finally i able generate APK with minifyEnabled to true Actually the issue was some duplicate classes given some warning which i didn't

Proguard no longer works with Retrofit

老子叫甜甜 提交于 2019-11-29 03:39:57
I have found older questions which touch on the same subject but with the latest versions none of the available answers work for me. I am using Retrofit in my project. When I try to assemble I get the following error: Warning: retrofit.client.OkClient: can't find referenced class com.squareup.okhttp.OkHttpClient I'm using the following but none of it is helping: -keepattributes Signature -keep class retrofit.** { *; } -keep class retrofit.http.** { *; } -keep class retrofit.client.** { *; } -keep class com.squareup.okhttp.** { *; } -keep interface com.squareup.okhttp.** { *; } -keep class com

Proguard won't keep a class member's enums

元气小坏坏 提交于 2019-11-29 03:02:14
I'm working on a library that is distributed as a java jar, and I'm running proguard on it in such a way as to only leave the required interfaces exposed. I have a configuration class with a bunch of member variables and some enum defines. My proguard script preserves the member variables fine, however, the enum definitions are being obfuscated. I've tried everything I can think of to force proguard to retain these internally defined and public enums, but I can't get it to work. Right now I'm using: -keep public class com.stuff.MyConfigObject { public *; } -keepclassmembers enum * { public

com.google.android.gms.internal.zzhu: can't find referenced class android.security.NetworkSecurityPolicy

你离开我真会死。 提交于 2019-11-29 03:01:27
I tried to generate an apk using proguard, but I've got this error while trying to build: Warning: com.google.android.gms.internal.zzhu: can't find referenced class android.security.NetworkSecurityPolicy Warning: there were 3 unresolved references to classes or interfaces. You may need to add missing library jars or update their versions. If your code works fine without the missing classes, you can suppress the warnings with '-dontwarn' options. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass) :app:proguardRelease FAILED Error:Execution failed for task ':app

Error Proguard Unsupported class version number

我怕爱的太早我们不能终老 提交于 2019-11-29 02:58:39
I get always this erroe when I try to obfuscate an App with proguard Error:ProGuard: [MyApp] java.io.IOException: Can't read [C:\Program Files\Java\jdk1.8.0\jre\lib\rt.jar] (Can't process class [com/oracle/net/Sdp$1.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7))) I have already updated Proguard and checked the project-config file but always the same Error. I'm using the latest version of Intellij IDEA Seems that Proguard doesn't support Java 8 actually. You have to use JDK version 7. EDIT-1 I have recompiled Proguard to support JDK 8 classes, doesn't support Java 8