在我开始之前,想要打个招呼并感谢您阅读本文,我已经解决了这个问题,感谢任何帮助!
我已经在这个项目上工作了一段时间,而且测试完全没问题。我可以运行它,它适用于我的Android平板电脑,没有错误或任何东西。但是,当我最终尝试发布它并进入“Android工具 - >导出签名应用程序”时,我返回 Dalvik错误1 。
我尝试启用proguard,并留下了许多未引用的类。如:
[2013-05-14 15:40:24 - MxlTestApp] Proguard returned with error code 1. See console
[2013-05-14 15:40:24 - MxlTestApp] Note: there were 439 duplicate class definitions.
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EJBHome: can't find superclass or interface java.rmi.Remote
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EJBObject: can't find superclass or interface java.rmi.Remote
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find superclass or interface javax.management.DynamicMBean
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class android.net.http.AndroidHttpClient extends or implements program class org.apache.http.client.HttpClient
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class javax.xml.validation.ValidatorHandler extends or implements program class org.xml.sax.ContentHandler
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.Attributes2 extends or implements program class org.xml.sax.Attributes
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.Attributes2Impl extends or implements program class org.xml.sax.helpers.AttributesImpl
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.DefaultHandler2 extends or implements program class org.xml.sax.helpers.DefaultHandler
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.DefaultHandler2 extends or implements program class org.xml.sax.ext.LexicalHandler
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.DefaultHandler2 extends or implements program class org.xml.sax.ext.DeclHandler
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.EntityResolver2 extends or implements program class org.xml.sax.EntityResolver
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.Locator2 extends or implements program class org.xml.sax.Locator
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xml.sax.ext.Locator2Impl extends or implements program class org.xml.sax.helpers.LocatorImpl
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xmlpull.v1.sax2.Driver extends or implements program class org.xml.sax.Locator
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xmlpull.v1.sax2.Driver extends or implements program class org.xml.sax.XMLReader
[2013-05-14 15:40:24 - MxlTestApp] Warning: library class org.xmlpull.v1.sax2.Driver extends or implements program class org.xml.sax.Attributes
[2013-05-14 15:40:24 - MxlTestApp] Warning: Mxl.YoutubeChannel: can't find referenced method 'java.lang.String getTextContent()' in class org.w3c.dom.Node
[2013-05-14 15:40:24 - MxlTestApp] Warning: com.sun.tools.xjc.Version: can't find referenced class sun.misc.Version
[2013-05-14 15:40:24 - MxlTestApp] Warning: com.sun.tools.xjc.Version: can't find referenced class sun.misc.Version
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EJBContext: can't find referenced class javax.transaction.UserTransaction
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EJBHome: can't find referenced class java.rmi.Remote
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EJBHome: can't find referenced class java.rmi.RemoteException
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EJBObject: can't find referenced class java.rmi.Remote
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EJBObject: can't find referenced class java.rmi.RemoteException
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.EntityBean: can't find referenced class java.rmi.RemoteException
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.Handle: can't find referenced class java.rmi.RemoteException
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.HomeHandle: can't find referenced class java.rmi.RemoteException
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.SessionBean: can't find referenced class java.rmi.RemoteException
[2013-05-14 15:40:24 - MxlTestApp] Warning: javax.ejb.SessionSynchronization: can't find referenced class java.rmi.RemoteException
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.client.protocol.RequestAddCookies: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.client.protocol.RequestAddCookies: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.client.protocol.RequestAuthCache: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.client.protocol.RequestAuthCache: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.IdleConnectionHandler: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.IdleConnectionHandler: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.InMemoryDnsResolver: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.InMemoryDnsResolver: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.PoolingClientConnectionManager: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.PoolingClientConnectionManager: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.SingleClientConnManager: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.SingleClientConnManager: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.AbstractConnPool: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.AbstractConnPool: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.ConnPoolByRoute: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.ConnPoolByRoute: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.examples.oauth.GetAccessToken: can't find referenced class java.awt.Desktop
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.examples.oauth.GetAccessToken: can't find referenced class java.awt.Desktop
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.examples.oauth.GetAccessToken: can't find referenced class java.awt.Desktop
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenDataException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanNotificationInfo
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanParameterInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeDataSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeDataSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeNotFoundException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeNotFoundException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.ReflectionException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.ReflectionException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.DynamicMBean
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.InvalidAttributeValueException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.SimpleType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularType
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenDataException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanInfo
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanAttributeInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanConstructorInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanOperationInfoSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.MBeanNotificationInfo
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenMBeanParameterInfo
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeData
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.OpenDataException
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.TabularDataSupport
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.Attribute
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.AttributeList
[2013-05-14 15:40:24 - MxlTestApp] Warning: there were 309 unresolved references to classes or interfaces.
[2013-05-14 15:40:24 - MxlTestApp] You may need to add missing library jars or update their versions.
[2013-05-14 15:40:24 - MxlTestApp] If your code works fine without the missing classes, you can suppress
[2013-05-14 15:40:24 - MxlTestApp] the warnings with '-dontwarn' options.
[2013-05-14 15:40:24 - MxlTestApp] Warning: there were 13 instances of library classes depending on program classes.
[2013-05-14 15:40:24 - MxlTestApp] You must avoid such dependencies, since the program classes will
[2013-05-14 15:40:24 - MxlTestApp] be processed, while the library classes will remain unchanged.
[2013-05-14 15:40:24 - MxlTestApp] Warning: there were 1 unresolved references to program class members.
[2013-05-14 15:40:24 - MxlTestApp] Your input classes appear to be inconsistent.
[2013-05-14 15:40:24 - MxlTestApp] You may need to recompile the code or update the library versions.
[2013-05-14 15:40:24 - MxlTestApp] Alternatively, you may have to specify the option
[2013-05-14 15:40:24 - MxlTestApp] '-dontskipnonpubliclibraryclassmembers'.
[2013-05-14 15:40:24 - MxlTestApp] java.io.IOException: Please correct the above warnings first.
[2013-05-14 15:40:24 - MxlTestApp] at proguard.Initializer.execute(Initializer.java:330)
[2013-05-14 15:40:24 - MxlTestApp] at proguard.ProGuard.initialize(ProGuard.java:212)
[2013-05-14 15:40:24 - MxlTestApp] at proguard.ProGuard.execute(ProGuard.java:87)
[2013-05-14 15:40:24 - MxlTestApp] at proguard.ProGuard.main(ProGuard.java:484)
虽然我想说这些不应该存在,但我确实拥有我认为这些类“未引用”的库。虽然如果有人知道这些课程在哪里并且可以告诉我,我会喜欢这样。虽然我很困惑为什么这也是一个问题,因为这个应用程序在我不得不发布它之前已经运行良好,这一直是我的想法。
我有这个项目正在使用当前的库,也许这会泄露任何线索:
我已经尝试禁用proguard,这给了我一个Dalvik错误。我试过启用它,上面给我这个错误。我的Proguard是最新的,目前是4.9。我已经尝试在proguard中添加一些东西,比如“忽略jaxax *”。哪个确实让它最终构建,但不幸的是,应用程序在启动时因上述错误而崩溃。
如果需要更多信息,我的android开发者工具目前 建立:v21.1.0-569685
我正在运行这些测试的平板电脑是一款不错的小型Nexus 7。
这就是我所知道的,我可以向所有人投掷。再次,非常感谢阅读所有这些,我很欣赏这一点。任何推荐的帮助也将受到高度赞赏!
答案 0 :(得分:0)
如果您在Eclipse中看到有关缺少类的警告,则应确保导出所有库,以便将它们传递给ProGuard并包含在生成的apk中。
如果您仍然收到有关缺少课程的警告,则可能不会出现在Android上,例如: java.rmi.Remote
。显然,您的应用程序无论如何都不会使用它们,因此您可以告诉ProGuard它没关系:
-dontwarn java.rmi.**
请参阅ProGuard手册>疑难解答> Warning: can't find referenced class
如果org.xml.sax.**
之类的类在应用程序库和Android运行时之间重复,则会出现问题。您应该从库中删除它们,因为Android运行时中的版本无论如何都会优先。
请参阅ProGuard手册>疑难解答> Warning: library class ... depends on program class ...
此外,您应确保配置文件不包含-injars
或-libraryjars
选项。 Eclipse构建过程已经自动为您指定了所有必需的-injars
,-outjars
和-libraryjars
。
请参阅ProGuard手册>疑难解答> Note: duplicate definition of program/library class