草庐IT

ProGuard

全部标签

android - 使用 Proguard 编译给出 SimException : "local variable type mismatch"

当我在启用Proguard的情况下编译我的Android应用程序时,我收到以下错误:-dex:[echo]Convertingcompiledfilesandexternallibrariesinto/home/ka/dev/workspace/ImPress/build/classes.dex...[apply][apply]UNEXPECTEDTOP-LEVELEXCEPTION:[apply]com.android.dx.cf.code.SimException:localvariabletypemismatch:attempttosetoraccessavalueoftypej

android - Proguard 问题 "Warning:Ignoring InnerClasses attribute for an anonymous inner class"

我不知道该如何描述这个问题。我搜索了很多,但没有找到任何解决方案。这个解决方案也没有帮助我-keepattributesEnclosingMethod:dependencies{compileproject(':libraries:material-drawer')compilefileTree(dir:'libs',include:['*.jar'])testCompile'junit:junit:4.12'compile'com.android.support:appcompat-v7:23.2.0'compile'com.android.support:recyclerview-

android - Proguard 问题 "Warning:Ignoring InnerClasses attribute for an anonymous inner class"

我不知道该如何描述这个问题。我搜索了很多,但没有找到任何解决方案。这个解决方案也没有帮助我-keepattributesEnclosingMethod:dependencies{compileproject(':libraries:material-drawer')compilefileTree(dir:'libs',include:['*.jar'])testCompile'junit:junit:4.12'compile'com.android.support:appcompat-v7:23.2.0'compile'com.android.support:recyclerview-

使用Retrofit2和rxjava使用Proguard时出错

当我禁用Proguard时,它正常起作用,但是当启用Proguard时,它将引发一个例外:java.lang.IllegalStateException:FatalExceptionthrownonScheduler.Workerthread.这是我的代码:privatefungetData(email:String){mSubscriptions!!.add(NetworkUtil.retrofit.getProfile(email).observeOn(AndroidSchedulers.mainThread()).subscribeOn(Schedulers.io()).subscrib

java - 如何快速混淆 Java 代码?

如何快速混淆代码。我有一个非常小的Java应用程序,我想将经过混淆的代码交付给我的客户。我听说过很多ProGuard混淆代码并下载它但不知道如何混淆我的“abc.jar”文件。我查看了它的网站,但它包含很多可供阅读的Material。我不需要重度混淆。我只需要一个混淆器,它只是将变量、方法和类的名称更改为一些不可读的名称。我知道ProGuard还为所有这些提供了大量其他功能。Q1.所以谁能告诉我一些简单的混淆器或一些使用proguard的简单步骤,这样我就可以输入“abc.jar”并输出“obfuscate_abc.jar”或一些简单的东西像这样。Q2.还有一件事,因为我的Java程序

java - 如何快速混淆 Java 代码?

如何快速混淆代码。我有一个非常小的Java应用程序,我想将经过混淆的代码交付给我的客户。我听说过很多ProGuard混淆代码并下载它但不知道如何混淆我的“abc.jar”文件。我查看了它的网站,但它包含很多可供阅读的Material。我不需要重度混淆。我只需要一个混淆器,它只是将变量、方法和类的名称更改为一些不可读的名称。我知道ProGuard还为所有这些提供了大量其他功能。Q1.所以谁能告诉我一些简单的混淆器或一些使用proguard的简单步骤,这样我就可以输入“abc.jar”并输出“obfuscate_abc.jar”或一些简单的东西像这样。Q2.还有一件事,因为我的Java程序

Java 混淆 - ProGuard/yGuard/其他?

已结束。此问题不符合StackOverflowguidelines.它目前不接受答案。要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于StackOverflow来说是无关紧要的,因为它们往往会吸引固执己见的答案和垃圾邮件。相反,describetheproblem以及到目前为止为解决这个问题所做的工作。关闭9年前。Improvethisquestion这与这些最近的问题类似:BestJavaObfuscationApplicationForSizeReductionCreatingnon-reverse-engineerableJavaprograms但是,一个人最终推荐了yGu

Java 混淆 - ProGuard/yGuard/其他?

已结束。此问题不符合StackOverflowguidelines.它目前不接受答案。要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于StackOverflow来说是无关紧要的,因为它们往往会吸引固执己见的答案和垃圾邮件。相反,describetheproblem以及到目前为止为解决这个问题所做的工作。关闭9年前。Improvethisquestion这与这些最近的问题类似:BestJavaObfuscationApplicationForSizeReductionCreatingnon-reverse-engineerableJavaprograms但是,一个人最终推荐了yGu

如何跳过基本包装上的Retrofit2使用的Proguard模型?

我正在使用Kotlin和Raterofit2编写应用程序2。当我使用Proguard时,我在这里遵循规则:https://github.com/krschultz/android-proguard-snippets/blob/master/libraries/proguard-square-retrofit2.pro此外,我也需要采用我的模型,如https://stackoverflow.com/a/41136007/3286489如果我的模型在包装中,它可以正常工作,而且我有-keepclasscom.elyeproj.wikisearchcount.model.**{*;}packagec

java - 不能用 proguard 缩水

这是我的proguard配置(我从android工具文件夹中复制了它并添加了一些行)。-optimizations!code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*-optimizationpasses5-allowaccessmodification-dontpreverify#Theremainderofthisfileisidenticaltothenon-optimizedversion#oftheProguardconfigurationfile(exceptt