proguard

Proguard error while evaluating instruction

会有一股神秘感。 提交于 2019-12-22 06:02:33
问题 I upgrade my android project to 24 SDK version. But I got error in Proguard path of build: Unexpected error while evaluating instruction: Class = [com/google/android/gms/iid/zzd] Method = [zzeC(Ljava/lang/String;)V] Instruction = [11] invokevirtual #50 Exception = [java.lang.ArrayIndexOutOfBoundsException] (1) Unexpected error while performing partial evaluation: Class = [com/google/android/gms/iid/zzd] Method = [zzeC(Ljava/lang/String;)V] Exception = [java.lang.ArrayIndexOutOfBoundsException

Android proguard Javascript Interface problem

旧时模样 提交于 2019-12-22 05:19:27
问题 My project after obfuscation with proguard fail with javascriptinterface Here is the link with some suggestions for proguard configuration but it dosn't work in my case http://groups.google.com/group/android-developers/browse_thread/thread/f889e846fbf7ec3f?pli=1 So the calls from Javascript loose binding to the associated Java methods My proguard configuration regarding that -keep public class com.trans_code.android.JavascriptCallback -keep public class * implements com.trans_code.android

How do I use ProGuard?

落花浮王杯 提交于 2019-12-22 05:06:07
问题 I was trying to learn how to use ProGuard, and it is no way as easy as I thought. At first I found a simple Java code to try it, a simple two class Swing calculator. The code can be found by following that link, but I found it too verbose to post the it here. Anyway, it is a plain application with entry point on Calc.main() , there are no packages. Then I compiled both sources with: $ javac *.java and created the .jar file (because it seems ProGuard only work with jars): $ jar cvef Calc calc

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

旧时模样 提交于 2019-12-21 23:02:08
问题 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

AsyncTask.doInBackground - abstract method not implemented error in Android Scala project

杀马特。学长 韩版系。学妹 提交于 2019-12-21 21:26:21
问题 Can anyone give me any clues on how to debug the following. I have a mixed java / scala android project that I'm working on in Intellij and I process it through Proguard as part of run config. When I run the app I get the error: 07-24 12:36:35.879 21731-21779/com.ovaphone E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask$Sync

Android ProGuard obfuscation of library: keep class not working

我是研究僧i 提交于 2019-12-21 21:25:52
问题 Intro: I have in AS 1 project with 2 models: Android library project with some "Public API class" Android APP dependent on above library (the library module is on the dependency list) Task: I want to obfuscate my library project because I want to expose it as public SDK but keep my code protected... What I did: So I made custom ProGuard rules: -dontshrink -dontoptimize -dontpreverify -keep class com.org.my_public_api_class_name I skip all other stages in order to eliminate where the bug is to

Proguard in a Maven + Spring 3 big Web Application

江枫思渺然 提交于 2019-12-21 20:37:51
问题 I have been trying all day to obfuscate the web application we are developing (we are going to allow big clients to host it on their servers) and after surfing, searching and trying a lot I am unable to reduce the number of errors I receive: "there were 7283 unresolved references to classes or interfaces" I started from 20K so I managed to get some improvements... This is the pom config I am using: <plugin> <groupId>com.github.wvengen</groupId> <artifactId>proguard-maven-plugin</artifactId>

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-21 20:37:34
问题 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. 回答1: For manual reverse engineering, you can try dex2jar and then Java Decompiler. 回答2: 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

How to configure proguard for Android application using Google Drive SDK?

本小妞迷上赌 提交于 2019-12-21 20:25:37
问题 When Eclipse includes proguard when building the Quickstart: Run a Drive App on Android example application, the application loses its ability to upload files. The Google API client id appears to be correctly configured given the release version of the application works fine when built without proguard. However that same release version application's file upload doesn't work when built in Eclipse with proguard enabled. Here is my problematic proguard configuration file: # To enable ProGuard

Use Proguard for Scala AWS Lambda

南楼画角 提交于 2019-12-21 19:11:10
问题 I have a question regarding the usage of proguard together with a scala aws lambda function. I have created a very simple aws lambda function like this: package example import scala.collection.JavaConverters._ import com.amazonaws.services.lambda.runtime.events.S3Event import com.amazonaws.services.lambda.runtime.Context object Main extends App { def kinesisEventHandler(event: S3Event, context: Context): Unit = { val result = event.getRecords.asScala.map(m => m.getS3.getObject.getKey) println