proguard

Dagger + Proguard obfuscation, Errors creating object graph

你说的曾经没有我的故事 提交于 2019-11-28 05:49:56
问题 Running an obfuscated version of my application throws the following stacktrace java.lang.RuntimeException: Unable to create service com.mycompany.myapp.async.alarms.AlarmIntentService: java.lang.IllegalStateException: Errors creating object graph: dagger.Lazy could not be bound with key dagger.Lazy required by dagger.Lazy com.mycompany.scheduler.c.mNotificationDisplayer If I add -dontobfuscate, it runs smoothly Here's the class that contains that field public abstract class

Proguard error when exporting signed app using android.support.v4.app honeycomb compatibility package

强颜欢笑 提交于 2019-11-28 05:32:21
I am using v4 compatibility package in my project, but when I try to export a signed app, I get the following message from Proguard. I've Googled the whole evening, but I didn't find the answer to solve this. [2011-07-03 01:46:29 - worldscopeApp] Proguard returned with error code 1. See console [2011-07-03 01:46:29 - worldscopeApp] Warning: android.support.v4.app.ActivityCompatHoneycomb: can't find referenced method 'void invalidateOptionsMenu()' in class android.app.Activity [2011-07-03 01:46:29 - worldscopeApp] Warning: android.support.v4.app.ActivityCompatHoneycomb: can't find referenced

Getting Warnings With Proguard (With External Libraries)

青春壹個敷衍的年華 提交于 2019-11-28 05:13:00
I have enabled Proguard, and i'm trying to build the APK, and i'm getting a lot of warnings and don't know how to solve them . I'm using Retrofit, Jsoup and other stock libraries, I'm getting the following warnings : Warning:okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement Warning:okio.Okio: can't find referenced class java.nio.file.Files Warning:okio.Okio: can't find referenced class java.nio.file.Path Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption Warning:okio.Okio: can't find referenced class java.nio.file.Path

Best tool for jar or class obfuscation without need of writing any additional config file [closed]

点点圈 提交于 2019-11-28 04:45:29
I'm looking for a tool which will give a acute performance in class or jar obfuscation and can contrive to obfuscate the jar easily. But for few day I stuck on searching for this tool. I know Proguard deserves itself, but I need a tool which will be very friendly and it can able to retrieve all available packages from the jar and show it. So that it will be easy to obfuscate. If I use Proguard I have to manipulate a configuration file called proguard.cfg that will be used during obfuscation and also I have to execute a command line, you know it is not only destructive but also very as tedious

Android obfuscate app using proguard keeps obfuscating library jars - or is it?

社会主义新天地 提交于 2019-11-28 04:43:11
I'm new to using Proguard so I'm probably making a newbie mistake. I've got an app that after I run the release build (which uses Proguard to obfuscate) it crashes pretty quickly. I believe I've narrowed it down to the fact that it seems like it is obfuscating my reference libraries. In my case my reference libraries are used to define my message classes that I am using to communicate to another device using Google Protobuffers. I am building using, ant release. My proguard config is: -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose

Proguard issue “Warning:Ignoring InnerClasses attribute for an anonymous inner class”

心已入冬 提交于 2019-11-28 04:37:57
I don't know how I can describe this issue. I searched a lot, but I didn't find any solution. Also this solution did not help me -keepattributes EnclosingMethod : dependencies { compile project(':libraries:material-drawer') compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:recyclerview-v7:23.2.0' compile 'com.android.support:design:23.2.0' compile 'com.google.code.gson:gson:2.4' compile 'com.mcxiaoke.volley:library:1.0.19' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com

Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease

不打扰是莪最后的温柔 提交于 2019-11-28 04:30:00
I am trying to export apk and I want to enable Proguard but it throwing below error. I read so many answers and tried but didn't worked. Getting below error: Warning:Exception while processing task java.io.IOException: java.lang.NullPointerException Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease StackTrace: :app:transformClassesAndResourcesWithProguardForRelease ProGuard, version 5.2.1 Warning: Exception while processing task java.io.IOException: java.lang.NullPointerException :app:transformClassesAndResourcesWithProguardForRelease FAILED FAILURE:

Android Studio proguard handling in multi-library projects

白昼怎懂夜的黑 提交于 2019-11-28 03:50:30
I have an application that uses an externally referenced library (that is, the directory of the library is in the same level as the application - it is not copied inside the application's folder). The library is referenced by the application and both the library and the application include proguard files. Everything works fine until I build the application. When I built the app, all referenced to the classes defined in the library are not found - I get 'cannot find symbol class ...) errors on all imports of library classes. As I found, this is because when rebuilding the application, proguard

Volley seems not working after ProGuard obfuscate

ぃ、小莉子 提交于 2019-11-28 03:19:50
问题 I have an Android app which uses Google Volley as my download broker. I just tried to use ProGuard to obfuscate the code, and find out the volley download starts failing at runtime. Here's my ProGuard config: -keep class android.support.v4.app.** { *; } -keep interface android.support.v4.app.** { *; } -keep class com.actionbarsherlock.** { *; } -keep interface com.actionbarsherlock.** { *; } -keep class com.android.volley.** { *; } -keep interface com.android.volley.** { *; } -keepattributes

ProGuard configuration for Guava with obfuscation and optimization

自闭症网瘾萝莉.ら 提交于 2019-11-28 03:15:51
Looking for a ProGuard configuration for Guava that will obfuscate and optimize, as the default one that is provided on the website does not. Not only that I cannot get it to export my apk, I keep getting: Warning: com.google.common.collect.MinMaxPriorityQueue: can't find referenced field 'int UNSET_EXPECTED_SIZE' in class com.google.common.collect.MinMaxPriorityQueue$Builder You should check if you need to specify additional program jars. Jonik As of Guava 17.0 , this is what I needed in ProGuard config: -dontwarn javax.annotation.** -dontwarn javax.inject.** -dontwarn sun.misc.Unsafe