proguard

Problem on obfuscating j2me applications in Netbeans 6.8

人盡茶涼 提交于 2019-12-12 01:33:57
问题 When I'm trying to package a midlet with obfuscation, the following is displayed on the output window: pre-init: pre-load-properties: exists.config.active: exists.netbeans.user: exists.user.properties.file: load-properties: exists.platform.active: exists.platform.configuration: exists.platform.profile: basic-init: cldc-pre-init: cldc-init: cdc-init: ricoh-pre-init: ricoh-init: semc-pre-init: semc-init: savaje-pre-init: savaje-init: sjmc-pre-init: sjmc-init: cdc-hi-pre-init: cdc-hi-init:

Android: Cast String with Gson (proguard)

天涯浪子 提交于 2019-12-12 01:24:54
问题 I use the below code to cast a string (containing json) into an Object (Category): String jsonInfo = "{'id':'GAME','name':'game','subCategories':[{'subId':'ALL','subName':'All games'},{'subId':'SOCIAL','subName':'Social game'}]}"; Category xx = getCategory(jsonInfo); //method for casting string into Category public Category getCategory (String json){ Category myObject ; myObject = new Gson().fromJson(json, Category.class); } My Category Class : public class Category extends MasterDomain {

Android: Proguard error in eclipse

冷暖自知 提交于 2019-12-11 23:22:11
问题 I am trying to built the signed apk of my app. But i am getting the error pop up as Proguard returned with error code 1. See console And error log in console as : [2016-04-15 11:36:44 - MyApp] Proguard returned with error code 1. See console [2016-04-15 11:36:44 - MyApp] Note: there were 85 duplicate class definitions. [2016-04-15 11:36:44 - MyApp] Warning: org.acra.ErrorReporter: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang

VerifyError: Rejecting class android.support.g.b because it failed compile-time verification

爱⌒轻易说出口 提交于 2019-12-11 22:08:01
问题 This is similar to Rejecting class because it failed compile-time verification Android and java.lang.VerifyError: Verifier rejected class on Lollipop when using release APK but the origin of my problem is still unknown and all the proposed solutions do not help. Manually installing a signed release apk with MultiDex support and ProGuard enabled throws this exception on start: 475-475/? E/AndroidRuntime: FATAL EXCEPTION: main Process: ..., PID: 475 java.lang.VerifyError: Verifier rejected

java.io.IOException: Can't process class when running ProGuard in Maven build of Android project

99封情书 提交于 2019-12-11 22:01:54
问题 I use a library called iText to write new information to existing PDFs. In order to encrypt PDFs, iText (for Android) uses a library called SpongyCastle which is an Android port of BouncyCastle. Unfortunately, both iText and Spongycastle contain a very large number of methods (15k+). In Android there is a hard limit to the number of methods you can use (64k). Fortunately, iText does not use many classes in the Spongycastle jar. I was able to unzip the Spongycastle jar and remove all of the

How to use proguard.config setting in project.properties file?

空扰寡人 提交于 2019-12-11 20:12:20
问题 I use eclipse and I guess ant building system. In my project root i have a project.properties file which contains proguard.config setting. This setting is said in sdk examples to either proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt or proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:proguard-project.txt I have found somewhere that you can state multiple files delimited by colon ":". But nowhere it is explained in depth which of

Mobclix and Proguard

不打扰是莪最后的温柔 提交于 2019-12-11 17:42:41
问题 I'm trying to use Proguard to obfuscate my code. I use Mobclix for advertisements, and when I build my APK it's spitting out an error: org.eclipse.core.runtime.CoreException: Proguard returned with error code 1. See console at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:228) at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:290) at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard

android : can anyone send link or file proguard.cfg for download

北战南征 提交于 2019-12-11 16:57:01
问题 I have problem with eclipse & android sdk after latest update , my question is can anyone send us or share this file proguard.cfg, so we do not download again the same sdk ? 回答1: -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends

Proguard not able to obfuscate the jar through maven plugin

只谈情不闲聊 提交于 2019-12-11 16:46:32
问题 I am trying to obfuscate a jar build through maven, through proguard maven plugin. Build is also successful but when I decompile the same through JAD (Java decompiler), I am able to see all the java code. Thus it seems there is no obfuscation of the java source file. Please find below the pom.xml for the same : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org

Error: A JNI error has occurred. Exception in thread “main” java.lang.VerifyError. Expected stackmap frame at this location

烂漫一生 提交于 2019-12-11 16:13:27
问题 I am trying to obfuscate a java application project which uses appium jars. When I create the jar using gradle build the jar works fine but when I obfuscate the jar and try to run it I get the following error. Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 77 Exception Details: Location: com/mobile/MobileTest/App.peformActions()V @0: new Reason: Expected stackmap frame