草庐IT

proguard-rules

全部标签

java - Proguard - Unresolved 对程序类成员的引用

我正在尝试混淆我的android应用程序,但是我收到以下错误:[2012-04-1519:55:51-TmtAndroid]Proguardreturnedwitherrorcode1.Seeconsole[2012-04-1519:55:51-TmtAndroid]Warning:proguard.ant.ClassPathElement:can'tfindreferencedmethod'org.apache.tools.ant.ProjectgetProject()'inclassproguard.ant.ClassPathElement[2012-04-1519:55:51-T

android - Proguard 混淆了合并库 list 中的 Activity 名称

我有几个使用公共(public)库项目的应用程序项目。我最近尝试将一些常见的Activity声明从每个应用程序项目的AndroidManifest.xml移动到库的list中,并在project.properties中使用manifestmerger.enabled=true启用list合并。在调试版本中一切正常,但发布版本(被Proguard混淆)失败并出现ActivityNotFoundException。这是因为Proguard混淆了库list中声明的​​Activity的名称,而不是应用程序list中的名称。我已经检查了应用程序项目的合并bin/AndroidManifest.

java - ProGuard:警告:org.apache.commons.beanutils.BeanMap$2:找不到父类(super class)或接口(interface) org.apache.commons.collections.Transformer

我在Android应用程序上使用Proguard时遇到以下错误。ProGuard:[sand]Warning:org.apache.commons.beanutils.BeanMap$2:can'tfindsuperclassorinterfaceorg.apache.commons.collections.TransformerProGuard:[sand]Warning:org.apache.commons.beanutils.BeanMap$3:can'tfindsuperclassorinterfaceorg.apache.commons.collections.Transfo

android - ProGuard - 如何正确使用 Android?要保留哪些类和库?

我正在努力提高我对ProGuard在Android构建中的使用的理解。我不太确定要准确保留(不混淆)什么以及要混淆什么。我的应用程序中使用了几个库,下面列出了其中一些com.android.support:appcompatcom.android.support:designio.reactivex:rxandroidio.reactivex:rxjavacom.jakewharton.rxbindingcom.trello:rxlifecycle问题1:我应该混淆上面的库吗?它们已经是开源的..保留所有支持库使用proguard规则不是明智的吗:保持类android.support.

android - 我如何教 ProGuard 摆脱它保留的我不使用的东西?

我有一个Android项目,其中包含用于app模块的proguard-rules.pro文件,其中仅包含以下内容:#ProGuardrules-dontobfuscate-dontwarnandroid.arch.util.paging.CountedDataSource-dontwarnandroid.arch.persistence.room.paging.LimitOffsetDataSource我自己没有保留任何东西。所有-keep规则都来自其他东西,无论是getDefaultProguardFile('proguard-android-optimize.txt')提供的规则还

android - 从 1 种方法中剥离无效的本地信息 - Proguard

我在gradlebuild后收到此警告。我认为这与我的Proguardrules和Logs有关。我怎样才能“去除无效的本地信息”?我想将我的日志包装到一个LogUtil类中:publicclassLogUtils{publicstaticvoiddebug(finalStringtag,Stringmessage){if(BuildConfig.DEBUG){Log.d(tag,message);}}}并将其添加到proguard规则中-assumenosideeffectsclassandroid.util.Log{publicstatic***d(...);}是一个很好的解决方案,

android - Proguard 在导出应用程序时出现以下错误

Warning:libraryclassandroid.webkit.WebViewdependsonprogramclassandroid.webkit.WebViewClientWarning:therewere1instancesoflibraryclassesdependingonprogramclasses.Youmustavoidsuchdependencies,sincetheprogramclasseswillbeprocessed,whilethelibraryclasseswillremainunchanged.java.io.IOException:Pleasec

android - 在处理 Proguard、MultiDex、Testing 和 Product Flavors 时有什么好的策略?

我有一个应用程序引用了大约10万个方法,最小Sdk=16这里有2个组装选项:Proguard将这一堆方法压缩到只有44K个方法使用MultiDex现在我有一些常见的用例:在模拟器和设备上运行和调试要求尽可能快进行测试(集成和用户界面)它需要运行(我在使用MultiDex运行Espresso时遇到了一些问题)制作产品APK要求可靠,尽可能缩小你们有什么关于组装策略的建议吗?3/产品使用Proguard减小APK大小使用Proguard进行混淆尽量不要使用Multidex(可能会失败)2/测试使用minSdkVersion21(我读到从21开始启用预索引,这样可以节省时间)???1/调试使

android java.lang.AssertionError : java. lang.NoSuchMethodException - Proguard

在已发布的应用程序版本中,我的应用程序因此错误而崩溃。它在Debug模式下工作正常Process:com.app,PID:13162java.lang.AssertionError:java.lang.NoSuchMethodException:[interfacetwitter4j.conf.Configuration,interfacetwitter4j.a.b]attwitter4j.n.(UnknownSource)atcom.app.activities.RegistrationActivity.g(UnknownSource)atcom.app.activities.Reg

android - 未捕获的翻译 SimException : dx. rop.cst.CstInterfaceMethodRef 无法转换为 com.android.dx.rop.cst.CstMethodRef (Proguard)

我的团队和我一直在努力解决我们在进入Beta版之前尝试混淆我们的Android应用程序时遇到的异常。我们得到的异常是:Error:Uncaughttranslationerror:com.android.dx.cf.code.SimException:com.android.dx.rop.cst.CstInterfaceMethodRefcannotbecasttocom.android.dx.rop.cst.CstMethodRefPossiblecausesforthisunexpectederrorinclude:Gradle'sdependencycachemaybecorru