proguard

conflicts with existing, non-compatible bean definition of same name and class after proguard obfuscation

本秂侑毒 提交于 2019-12-04 17:24:17
after Proguard obfuscation i get the following error : Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'a' for bean class [com.company.project.b.a.a.a] conflicts with existing, non-compatible bean definition of same name and class [com.company.project.a.a] i'm using annotation based spring configuration , how can i avoid having two classes with the same name using Proguard because Spring doesn't allow two beans to have the same name. I'm not sure if this

Proguard Interface class which has another interface inside

∥☆過路亽.° 提交于 2019-12-04 17:18:16
I have an Interface class A and in the Class A i have another Interface B I am trying to proguard the Package and when i build it in gradle I getting The below error symbol: class B location: interface A ../Progaurd/android/trunk/sample/module-c/src/main/java/com/c/db/C.java:24: error: cannot find symbol public class C implements B The actual class is as follows public interface A{ public interface B{ ... } } I have tried with the below lines in proguard-project.txt file -keep class * implements com.sample.manager.storage.A.B Please help me.... -keep public interface com.sample.manager.storage

ProGuard with Android: java.lang.NoSuchMethodError: android.util.Xml.asAttributeSet

≡放荡痞女 提交于 2019-12-04 16:13:15
问题 My app runs normally when ProGuard is disabled. After ProGuard is enabled, the app is exported into apk and installed into emulator. Then when I run it in emulator, force close... 05-10 11:14:10.582: E/AndroidRuntime(759): FATAL EXCEPTION: main 05-10 11:14:10.582: E/AndroidRuntime(759): java.lang.NoSuchMethodError: android.util.Xml.asAttributeSet 05-10 11:14:10.582: E/AndroidRuntime(759): at com.actionbarsherlock.view.MenuInflater.inflate(Unknown Source) 05-10 11:14:10.582: E/AndroidRuntime

using jsoup with proguard closing force close

扶醉桌前 提交于 2019-12-04 15:40:23
问题 EDIT : MY PROGUARD VERSION IS 4.7 Today I tried include jsoup (version 1.7.1) in my android application, but it is causing me a lot of troubles. When I exported the signed apk with proguard turned on everytime my application was facing force close issues, then i disabled proguard and exported the apk and it ran perfectly. Please help me. How can I solve the error? The stacktrace is as below: java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask

Android: Java: Proguard: How to: verify if my jar (different jar project)/apk are successfully processed? (I am thinking to reverse engineer it)

醉酒当歌 提交于 2019-12-04 15:09:03
I successfully processed my jar and apk. Then, want to verify if is it truly hard to reverse engineer or truly did the obfuscation. I am thinking to try to reverse engineer it by myself to see what I did. But don't know how to do it. For manual reverse engineering, you can try dex2jar and then Java Decompiler . I assume you have a set of tests (unit/functionality). Run them against the obfuscated jar file. They should pass as if you had the original program. 来源: https://stackoverflow.com/questions/7478809/android-java-proguard-how-to-verify-if-my-jar-different-jar-project-apk-ar

Proguard obfuscating does not work

做~自己de王妃 提交于 2019-12-04 13:45:02
I'm trying to obfuscate my package names including that one of my used libraries. I use this build config in my gradle file: buildTypes { debug { versionNameSuffix "-Development" debuggable true runProguard true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } #... This is my proguard file: # Butterknife -dontwarn butterknife.internal.** -keep class **$$ViewInjector { *; } -keepnames class * { @butterknife.InjectView *;} # OrmLite uses reflection -keepclassmembers class com.j256.** { *; } -keep class my.package.name.database.** { *; } -keep class com.j256.**

Does ProGuard work with JavaEE 6 applications?

我是研究僧i 提交于 2019-12-04 12:15:24
I'm trying to get Proguard to obfuscate a simple .war file. According to the docs Proguard handles .war files, but when I try I get this: Warning: class [WEB-INF/classes/com/corp/gr/t2b/T2BChannel.class] unexpectedly contains class [com.corp.gr.t2b.T2BChannel] The docs mention something about Proguard not liking .war files with classes in the WEB-INF/classes directory. So I put all the .class files in their own .jar file in WEB-INF/lib. Then Proguard complains that it cannot find any of the JavaEE 6 classes, even though I've given it the javaee.jar file with -libraryjars C:/bin/glassfish-3.0.1

Ignore proguard configuration of an external library

馋奶兔 提交于 2019-12-04 11:24:45
问题 So, I want to add an external library to my project. The library itself is quite small, around 300 methods. But it is configured to be very liberal with it's proguard configuration. I ran a simple test with/without the library and with/without proguard on a barebones project and this is what I came up with Proguard Lib Method Count N N 15631 Y N 6370 N Y 15945 Y Y 15573 As you can see, with proguard enabled, the count is ~6000. But the moment I add the lib, count shoots up to ~15000 despite

Android Proguard - is it best practice to -keep all 3rd party libs?

你离开我真会死。 提交于 2019-12-04 11:00:06
I'm configuring Proguard for an app that uses 3rd party libraries. Is it "best practice" (in order to avoid future hard-to-find bugs) to include the line: -keep class 3rd_party_lib_name.** {*;} for every single 3rd party open source library that doesn't have specific Proguard instructions from its developer? Also, a related question: is there a general guideline for which cases I should use -keep class and in which cases i should use -keep public class many thanks ben75 The major problem with proguard and code obfuscation in general is that classname, methods and fields name are modified. ( i

Using Proguard for Android in Eclipse got Error

不羁岁月 提交于 2019-12-04 09:58:10
问题 I have taken a fresh install of Eclipse and all the latest Android tools and want to use Proguard on existing project, but for now I have created a new blank one. I have added a proguard.cfg file to my project added proguard.config=proguard.cfg to my default.properties Now when I try to export I get the following error [2010-12-12 10:36:35 - ApplicationTest] Proguard returned with error code 1. See console [2010-12-12 10:36:35 - ApplicationTest] 'C:\Program' is not recognized as an internal