草庐IT

proguard-project-mfp

全部标签

android - ProGuard 导致 NullPointerException

当在我的gradle中设置minifyEnabledtrue时,我在启动我的应用程序时得到一个NullPointerException:java.lang.RuntimeException:UnabletostartactivityComponentInfo{de.ae.formulaecalendar/de.ae.formulaecalendar.view.calendar.CalendarActivity}:java.lang.NullPointerException:Attempttoinvokevirtualmethod'voidandroid.support.v7.widge

安卓开发 : Local SVN for Android Projects?

我正在尝试在Eclipse中为我的Android项目设置VCS。现在我已经在Eclipse上安装了SVN和Subclipse插件。我知道如何像谷歌代码项目url一样连接到远程SVN,但我不想那样,我想在我自己的计算机上设置本地SVN。我该怎么做? 最佳答案 您必须创建本地存储库,然后告诉subclipse它在哪里。svn存储库基本上是一个文件夹,具有文件和文件夹的结构。如果你使用像TortoiseSVN这样的svn客户端,你只需要创建一个文件夹,给它命名并打开它,右键单击该文件夹,然后在上下文菜单中转到TortoiseSVN->“在

Android Proguard ExceptionInInitializerError 和 RuntimeException

我想混淆我的.apk,但我在使用Proguard时遇到了一些麻烦。使用eclipse我启用了这个:#ToenableProGuardtoshrinkandobfuscateyourcode,uncommentthis(availableproperties:sdk.dir,user.home):proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt我正在使用4个外部库:android-support-v4.jar九老-android-lib.jargson-2.2.2.jar

android - Proguard 给出 "Warning: org.msgpack.*"

使用Eclipse导出我的项目时,我收到以下警告:[2013-08-2010:45:24-MyProj]Proguardreturnedwitherrorcode1.Seeconsole[2013-08-2010:45:24-MyProj]Note:therewere3023duplicateclassdefinitions.[2013-08-2010:45:24-MyProj]Warning:org.msgpack.template.builder.BeansBuildContext:can'tfindreferencedclassjavassist.CtClass[2013-08-

android - Android 上的 Proguard 和 Netty 5

我已经看到几个关于这个问题的问题,但它们是针对旧版本的Netty。我已经尝试了他们的答案,将org.jboss.netty换成io.netty,但出现了同样的错误。我正在尝试编译一个使用启用了Proguard的Netty5.0.0Alpha2(build#16)的Android应用。没有Proguard,应用程序运行良好。启用Proguard后,当它尝试使用Netty时,我会收到此异常:java.lang.IllegalStateException:unknowntypeparameter'I':classio.netty.channel.SimpleChannelInboundHan

机器人 : how to start activity defined in library project

我正在开发一个使用androidVNCViewer作为库项目的android应用程序,但我无法从androidVNC启动Activity(Activity未找到异常)。另外,我如何bundle一个库项目并将其作为一个apk使用?更新我正在使用以下Intent调用:Intentcall=newIntent("android.androidVNC.androidVNC.LAUNCH");startActivity(call);更新2使用以下代码后,我想我可以开始Activity但得到this(java.lang.NoSuchFieldError:android.androidVNC.R$i

android - 将 SpongycaSTLe 与 Proguard 结合使用

我一直在努力使用proguard来让SpongycaSTLe正常工作。大多数情况下,当我导出已签名的APK时会出现问题,要么出现错误,要么应用程序在启动前就崩溃了。所以,我已经设法收集信息以获得一个有效的混淆器配置:-optimizationpasses5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontskipnonpubliclibraryclassmembers-dontpreverify-verbose-repackageclasses''-allowaccessmodification-keepat

android - Android 应用程序中 newrelic 的 Proguard 配置?

我没有在我的应用程序中使用新遗物,它仍然显示找不到类错误。唯一对我有用的解决方案是包含新遗物。我正在使用eclipse。应用程序在调试中运行,现在我想使用混淆器,我是新手。我需要在proguard-project.txt中写什么才能在proguard中包含newrelic。谢谢! 最佳答案 经过一些测试和研究,要使用NewRelic启动Android应用程序并启用ProGuard,只需将以下代码fragment复制并粘贴到您的proguard.cfg文件中(或者如果您已将您的文件指定为proguard-properties.txt)

android - Dagger + Proguard 混淆,创建对象图时出错

运行我的应用程序的混淆版本会抛出以下堆栈跟踪java.lang.RuntimeException:Unabletocreateservicecom.mycompany.myapp.async.alarms.AlarmIntentService:java.lang.IllegalStateException:Errorscreatingobjectgraph:dagger.Lazycouldnotbeboundwithkeydagger.Lazyrequiredbydagger.Lazycom.mycompany.scheduler.c.mNotificationDisplayer如果我

java - 导出 .apk 时出现 Joda 时间和 ProGuard 错误

在Eclipse中,当我导出.apk并启用proguard时,出现以下构建错误:[2014-07-1004:13:30-VirginMobile]Proguardreturnedwitherrorcode1.Seeconsole[2014-07-1004:13:30-VirginMobile]Warning:org.joda.convert.JDKStringConverter$9:can'tfindreferencedclassjavax.xml.bind.DatatypeConverter[2014-07-1004:13:30-VirginMobile]Warning:org.jo