与外部罐子Proguard的错误 - 将返回错误code 1 [英] Proguard errors with external jar - returns error code 1

查看:532
本文介绍了与外部罐子Proguard的错误 - 将返回错误code 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在导出我的Andr​​oid应用程序,Proguard的返回错误code 1.我使用twitter4j外部罐子在我的应用程序。

我已经添加的jar包,rt.jar中(为此,我下载了它具有javax.management最新jdk1.7。*类)和dontwarn语句也proguard.cfg文件。

我列入injars,libraryjars声明也..

更新

  -optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dont preverify
-dontshrink
-verbose

#-injars斌/班
#-injars库
#-outjars斌/班,processed.jar

-libraryjars< java.home> /jre/lib/rt.jar
-libraryjars< java.home> /lib/tool​​s.jar
-libraryjars /libs/twitter4j-core-3.0.3.jar
-libraryjars /libs/twitter4j-media-support-3.0.3.jar
-libraryjars /libs/linkedin-j-android.jar
-libraryjars /libs/signpost-commonshttp4-1.2.jar
-libraryjars /libs/signpost-core-1.2.1.1.jar
-libraryjars /libs/signpost-jetty6-1.2.1.1.jar

-dontwarn org.apache。**
-dontwarn org.slf4j。**
-dontwarn org.json。*
-dontwarn org.mortbay。**
-dontwarn org.apache.log4j。**
-dontwarn org.apache.commons.logging。**
-dontwarn org.apache.commons.logging。**
-dontwarn org.apache.commons。codec.binary。**
-dontwarn javax.xml。**
-dontwarn javax.management。**
-dontwarn java.lang.management。**
-dontwarn android.support。**
-dontwarn com.google。code。**
-dontwarn oauth.signpost。**
-dontwarn twitter4j。​​*

-optimizations!code /简/算术,!现场/ * ,!类/合并/ *

-keep公共类*扩展android.app.Activity
-keep公共类*扩展android.app.Application
-keep公共类*扩展android.app.Service
-keep公共类*扩展android.content.BroadcastReceiver
-keep公共类*扩展android.content.ContentProvider
-keep公共类*扩展android.app.backup.BackupAgentHelper
-keep公共类*扩展的Andr​​oid。preference。preference
-keep公共类com.android.vending.licensing.ILicensingService

-keep类的javax ** {*。 }
-keep类组织** {*。 }
-keep类twitter4j ** {*。 }
-keep类java.lang.management ** {*。 }
-keep类com.google code ** {*。; }
-keep类oauth.signpost ** {*。 }

-keepclasseswithmembernames类* {
    天然的LT;方法&gt ;;
}

-keepclasseswithmembernames类* {
    公共和LT; INIT>(android.content.Context,android.util.AttributeSet);
}

-keepclasseswithmembernames类* {
    公共和LT; INIT>(android.content.Context,android.util.AttributeSet,INT);
}

-keepclassmembers枚举* {
    公共静态** []值();
    公共静态**的valueOf(java.lang.String中);
}

-keep类*实现android.os.Parcelable {
  公共静态最终android.os.Parcelable $造物主*;
}
 

不过,我所面临的问题,Proguard的返回错误code 1。

更新 LogCat中:

  [2013年2月18日10时43分47秒 -  SP] Proguard的返回错误code 1.见控制台
[2013年2月18日10时43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter1:无法找到父类或接口javax.xml.bind.annotation.adapters.XmlAdapter
[2013年2月18日10时43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter2:无法找到父类或接口javax.xml.bind.annotation.adapters.XmlAdapter
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:无法找到父类或接口javax.management.DynamicMBean中
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter1:找不到引用的类javax.xml.bind.annotation.adapters.XmlAdapter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter1:找不到引用的类javax.xml.bind.annotation.adapters.XmlAdapter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter1:找不到引用的类javax.xml.bind.annotation.adapters.XmlAdapter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter2:找不到引用的类javax.xml.bind.annotation.adapters.XmlAdapter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter2:找不到引用的类javax.xml.bind.annotation.adapters.XmlAdapter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter2:找不到引用的类javax.xml.bind.DatatypeConverter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter2:找不到引用的类javax.xml.bind.DatatypeConverter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter2:找不到引用的类javax.xml.bind.DatatypeConverter。
[2013年2月18日十点43分47秒 -  SP]警告:com.google code.linkedinapi.schema.Adapter2:找不到引用的类javax.xml.bind.annotation.adapters.XmlAdapter。
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.commonshttp.CommonsHttpOAuthProvider:找不到引用的方法的java.util.Map德$ C $的CForm(java.io.InputStream中的)'的类oauth.signpost.OAuth
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.commonshttp.CommonsHttpOAuthProvider:找不到引用的方法,在课堂上oauth.signpost.commonshttp.CommonsHttpOAuthProvider无效setResponseParameters(java.util.Map中)'
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.io.Buffer
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields $场
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields $场
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields $场
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.Address
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.io.Buffer
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.Address
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields $场
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.Htt prequestAdapter:找不到引用的类org.mortbay.jetty.HttpFields
[2013年2月18日十点43分47秒 -  SP]警告:oauth.signpost.jetty.JettyOAuthConsumer:找不到引用的类org.mortbay.jetty.client.HttpExchange
[2013年2月18日10时43分47秒 -  SP]警告:oauth.signpost.signature.OAuthMessageSigner:找不到引用的类org.apache.commons codec.binary.Base64
[2013年2月18日10时43分47秒 -  SP]警告:oauth.signpost.signature.OAuthMessageSigner:找不到引用的类org.apache.commons codec.binary.Base64
[2013年2月18日10时43分47秒 -  SP]警告:oauth.signpost.signature.OAuthMessageSigner:找不到引用的类org.apache.commons codec.binary.Base64
[2013年2月18日10时43分47秒 -  SP]警告:oauth.signpost.signature.OAuthMessageSigner:找不到引用的类org.apache.commons codec.binary.Base64
[2013年2月18日10时43分47秒 -  SP]警告:oauth.signpost.signature.OAuthMessageSigner:找不到引用的类org.apache.commons codec.binary.Base64
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类java.lang.management.ManagementFactory
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.ObjectName中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.ObjectName中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:无法找到引用javax.management.MBeanServer中的类
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.InstanceAlreadyExistsException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.InstanceAlreadyExistsException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.InstanceAlreadyExistsException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MBeanRegistrationException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MBeanRegistrationException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MBeanRegistrationException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.NotCompliantMBeanException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.NotCompliantMBeanException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.NotCompliantMBeanException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MalformedObjectNameException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MalformedObjectNameException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MalformedObjectNameException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类java.lang.management.ManagementFactory
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:无法找到引用javax.management.MBeanServer中的类
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.ObjectName中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.ObjectName中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:无法找到引用javax.management.MBeanServer中的类
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.InstanceAlreadyExistsException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MBeanRegistrationException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.NotCompliantMBeanException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.TwitterAPIMonitor:找不到引用的类javax.management.MalformedObjectNameException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.CommonsLoggingLoggerFactory:找不到引用的类org.apache.commons.logging.LogFactory
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.CommonsLoggingLoggerFactory:找不到引用的类org.apache.commons.logging.LogFactory
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Level
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Level
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLogger:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLoggerFactory:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.Log4JLoggerFactory:找不到引用的类org.apache.log4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLogger:找不到引用的类org.slf4j.Logger
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLoggerFactory:找不到引用的类org.slf4j.LoggerFactory
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.internal.logging.SLF4JLoggerFactory:找不到引用的类org.slf4j.LoggerFactory
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.CompositeType中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.CompositeType中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularType
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularType
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenDataException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.MBeanNotificationInfo
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.SimpleType中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanParameterInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.SimpleType中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularDataSupport中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularDataSupport中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.CompositeDataSupport中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.CompositeDataSupport中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularDataSupport中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeNotFoundException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeNotFoundException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.Attribute
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.Attribute
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.ReflectionException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.ReflectionException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenType
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.SimpleType中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.DynamicMBean中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.MBeanException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.InvalidAttributeValueException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.SimpleType中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenType
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.CompositeType中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularType
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenDataException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.MBeanInfo中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.MBeanNotificationInfo
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenMBeanParameterInfo
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularDataSupport中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用javax.management.openmbean.CompositeData中的类
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.OpenDataException
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.openmbean.TabularDataSupport中
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.Attribute
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.Attribute
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]警告:twitter4j.management.APIStatisticsOpenMBean:找不到引用的类javax.management.AttributeList
[2013年2月18日十点43分47秒 -  SP]您应该检查是否需要指定其他程序罐子。
[2013年2月18日十点43分47秒 -  SP]警告:有160未解析引用的类或接口。
[2013年2月18日十点43分47秒 -  SP]你可能需要指定其他的jar包(用-libraryjars)。
[2013年2月18日十点43分47秒 -  SP]警告:有2未解析引用的类成员计划。
[2013年2月18日十点43分47秒 -  SP]您输入的类似乎是不一致的。
[2013年2月18日十点43分47秒 -  SP]你可能需要重新编译它们,然后再试一次。
[2013年2月18日十点43分47秒 -  SP或者,您可能必须指定选项
[2013年2月18日十点43分47秒 -  SP]-dontskipnonpubliclibraryclassmembers。
[2013年2月18日十点43分47秒 -  SP] java.io.IOException异常:请首先纠正上述警告。
[2013年2月18日十点43分47秒 -  SP]在proguard.Initializer.execute(Initializer.java:321)
[2013年2月18日十点43分47秒 -  SP]在proguard.ProGuard.initialize(ProGuard.java:211)
[2013年2月18日十点43分47秒 -  SP]在proguard.ProGuard.execute(ProGuard.java:86)
[2013年2月18日十点43分47秒 -  SP]在proguard.ProGuard.main(ProGuard.java:492)
 

解决方案

感谢您这么多的一切。最后经过这么多的挣扎,我发现我的愚蠢的错误。我在project.properties配置错误的配置文件。

我改变code在proguard.cfg,但project.properties文件中包含了错误的配置文件路径,即

  proguard.config = $ {sdk.dir} /tool​​s/proguard/proguard-android.txt:proguard-project.txt
 

修正了这一变化:

  proguard.config = $ {sdk.dir} /tool​​s/proguard/proguard-android.txt:proguard.cfg
 

proguard.cfg工作版本

  -optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dont preverify
-dontshrink
-verbose

-injars斌/班
-injars库
-outjars斌/班,processed.jar

-libraryjars C:/glassfish3/jdk7/jre/lib/rt.jar
-libraryjars C:/glassfish3/jdk7/lib/tool​​s.jar

-dontwarn org.apache。**
-dontwarn org.slf4j。**
-dontwarn org.json。*
-dontwarn org.mortbay。**
-dontwarn org.apache.log4j。**
-dontwarn org.apache.commons.logging。**
-dontwarn org.apache.commons.logging。**
-dontwarn org.apache.commons。codec.binary。**
-dontwarn javax.xml。**
-dontwarn javax.management。**
-dontwarn java.lang.management。**
-dontwarn android.support。**
-dontwarn com.google。code。**
-dontwarn oauth.signpost。**
-dontwarn twitter4j。​​*

-optimizations!code /简/算术,!现场/ * ,!类/合并/ *

-keep公共类*扩展android.app.Activity
-keep公共类*扩展android.app.Application
-keep公共类*扩展android.app.Service
-keep公共类*扩展android.content.BroadcastReceiver
-keep公共类*扩展android.content.ContentProvider
-keep公共类*扩展android.app.backup.BackupAgentHelper
-keep公共类*扩展的Andr​​oid。preference。preference
-keep公共类com.android.vending.licensing.ILicensingService
-keep公共类com.google。code.linkedinapi。**

-keep类的javax ** {*。 }
-keep类组织** {*。 }
-keep类twitter4j ** {*。 }
-keep类java.lang.management ** {*。 }
-keep类com.google code ** {*。; }
-keep类oauth.signpost ** {*。 }

-keepclassmembers公共类com.google。code.linkedinapi.client.impl.LinkedInApiXppClient {
     公共和LT; INIT>(java.lang.String中,java.lang.String中);
}

-keepclasseswithmembernames类* {
    天然的LT;方法&gt ;;
}

-keepclasseswithmembernames类* {
    公共和LT; INIT>(android.content.Context,android.util.AttributeSet);
}

-keepclasseswithmembernames类* {
    公共和LT; INIT>(android.content.Context,android.util.AttributeSet,INT);
}

-keepclassmembers枚举* {
    公共静态** []值();
    公共静态**的valueOf(java.lang.String中);
}

-keep类*实现android.os.Parcelable {
  公共静态最终android.os.Parcelable $造物主*;
}
 

While exporting my Android Application, Proguard returned with error code 1. I am using twitter4j external jars in my app.

I already added library jars, rt.jar (For this I downloaded latest jdk1.7 which has javax.management.* classes) and dontwarn statements also to proguard.cfg file.

I included injars, libraryjars statements also..

Updated

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-dontshrink
-verbose

#-injars bin/classes
#-injars libs
#-outjars bin/classes-processed.jar

-libraryjars <java.home>/jre/lib/rt.jar
-libraryjars <java.home>/lib/tools.jar
-libraryjars /libs/twitter4j-core-3.0.3.jar
-libraryjars /libs/twitter4j-media-support-3.0.3.jar
-libraryjars /libs/linkedin-j-android.jar
-libraryjars /libs/signpost-commonshttp4-1.2.jar
-libraryjars /libs/signpost-core-1.2.1.1.jar
-libraryjars /libs/signpost-jetty6-1.2.1.1.jar

-dontwarn org.apache.**
-dontwarn org.slf4j.**
-dontwarn org.json.*
-dontwarn org.mortbay.**
-dontwarn org.apache.log4j.**
-dontwarn org.apache.commons.logging.**
-dontwarn org.apache.commons.logging.**
-dontwarn org.apache.commons.codec.binary.**
-dontwarn javax.xml.**
-dontwarn javax.management.**
-dontwarn java.lang.management.**
-dontwarn android.support.**
-dontwarn com.google.code.**
-dontwarn oauth.signpost.**
-dontwarn twitter4j.**

-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 android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService

-keep class javax.**  { *; }
-keep class org.**  { *; }
-keep class twitter4j.**  { *; }
-keep class java.lang.management.**  { *; }
-keep class com.google.code.**  { *; }
-keep class oauth.signpost.**  { *; }

-keepclasseswithmembernames class * {
    native <methods>;
}

-keepclasseswithmembernames class * {
    public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
    public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}

Still I am facing the issue, Proguard returned with error code 1.

Updated LogCat:

[2013-02-18 10:43:47 - SP] Proguard returned with error code 1. See console
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter1: can't find superclass or interface javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter2: can't find superclass or interface javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find superclass or interface javax.management.DynamicMBean
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter1: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter1: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter1: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter2: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter2: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter2: can't find referenced class javax.xml.bind.DatatypeConverter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter2: can't find referenced class javax.xml.bind.DatatypeConverter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter2: can't find referenced class javax.xml.bind.DatatypeConverter
[2013-02-18 10:43:47 - SP] Warning: com.google.code.linkedinapi.schema.Adapter2: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.commonshttp.CommonsHttpOAuthProvider: can't find referenced method 'java.util.Map decodeForm(java.io.InputStream)' in class oauth.signpost.OAuth
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.commonshttp.CommonsHttpOAuthProvider: can't find referenced method 'void setResponseParameters(java.util.Map)' in class oauth.signpost.commonshttp.CommonsHttpOAuthProvider
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.io.Buffer
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.Address
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.io.Buffer
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.Address
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields$Field
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.HttpFields
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.jetty.JettyOAuthConsumer: can't find referenced class org.mortbay.jetty.client.HttpExchange
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2013-02-18 10:43:47 - SP] Warning: oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2013-02-18 10:43:47 - SP] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenDataException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanNotificationInfo
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanParameterInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeDataSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeDataSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeNotFoundException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeNotFoundException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.ReflectionException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.ReflectionException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.DynamicMBean
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.InvalidAttributeValueException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularType
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenDataException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanInfo
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanNotificationInfo
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanParameterInfo
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeData
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenDataException
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-02-18 10:43:47 - SP]       You should check if you need to specify additional program jars.
[2013-02-18 10:43:47 - SP] Warning: there were 160 unresolved references to classes or interfaces.
[2013-02-18 10:43:47 - SP]          You may need to specify additional library jars (using '-libraryjars').
[2013-02-18 10:43:47 - SP] Warning: there were 2 unresolved references to program class members.
[2013-02-18 10:43:47 - SP]          Your input classes appear to be inconsistent.
[2013-02-18 10:43:47 - SP]          You may need to recompile them and try again.
[2013-02-18 10:43:47 - SP]          Alternatively, you may have to specify the option 
[2013-02-18 10:43:47 - SP]          '-dontskipnonpubliclibraryclassmembers'.
[2013-02-18 10:43:47 - SP] java.io.IOException: Please correct the above warnings first.
[2013-02-18 10:43:47 - SP]  at proguard.Initializer.execute(Initializer.java:321)
[2013-02-18 10:43:47 - SP]  at proguard.ProGuard.initialize(ProGuard.java:211)
[2013-02-18 10:43:47 - SP]  at proguard.ProGuard.execute(ProGuard.java:86)
[2013-02-18 10:43:47 - SP]  at proguard.ProGuard.main(ProGuard.java:492)

解决方案

Thank you so much for all. Finally after so much struggling I found my foolish mistake. I have configured wrong config file in project.properties.

I was changing code in proguard.cfg, but the project.properties file contains wrong config file path i.e.

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

Fixed with this changes:

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard.cfg

proguard.cfg working version

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-dontshrink
-verbose

-injars bin/classes
-injars libs
-outjars bin/classes-processed.jar

-libraryjars C:/glassfish3/jdk7/jre/lib/rt.jar 
-libraryjars C:/glassfish3/jdk7/lib/tools.jar

-dontwarn org.apache.**
-dontwarn org.slf4j.**
-dontwarn org.json.*
-dontwarn org.mortbay.**
-dontwarn org.apache.log4j.**
-dontwarn org.apache.commons.logging.**
-dontwarn org.apache.commons.logging.**
-dontwarn org.apache.commons.codec.binary.**
-dontwarn javax.xml.**
-dontwarn javax.management.**
-dontwarn java.lang.management.**
-dontwarn android.support.**
-dontwarn com.google.code.**
-dontwarn oauth.signpost.**
-dontwarn twitter4j.**

-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 android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keep public class com.google.code.linkedinapi.**

-keep class javax.**  { *; }
-keep class org.**  { *; }
-keep class twitter4j.**  { *; }
-keep class java.lang.management.**  { *; }
-keep class com.google.code.**  { *; }
-keep class oauth.signpost.**  { *; }

-keepclassmembers public class com.google.code.linkedinapi.client.impl.LinkedInApiXppClient {
     public <init>(java.lang.String, java.lang.String);
}

-keepclasseswithmembernames class * {
    native <methods>;
}

-keepclasseswithmembernames class * {
    public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
    public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}

这篇关于与外部罐子Proguard的错误 - 将返回错误code 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆