4

在我开始之前,想打个招呼并感谢您阅读本文,我已经遇到了很多这个问题,感谢您的帮助!

我已经在这个项目上工作了一段时间,并且测试得非常好。我可以运行它,它可以在我的安卓平板电脑上运行,没有错误或任何东西。但是当我最终尝试发布它并进入“Android Tools -> Export Signed Application”时,我返回了Dalvik Error 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)

尽管我想说这些不应该存在,但我确实拥有我认为拥有这些“未引用”类的库。虽然如果有人知道这些课程在哪里并且可以告诉我,我会喜欢的。虽然我对为什么这也是一个问题感到困惑,但这个应用程序在我不得不发布它之前运行良好,这一直在我的脑海中。

我有这个项目与当前正在使用的库,也许这会给出任何线索:

  • 脸书 SDK
  • 推特4j
  • ZXing扫描活动

我试过禁用 proguard,这给了我一个 Dalvik 错误。我试过启用它,上面给了我这个错误。我的 Proguard 是最新的,目前是 4.9。我尝试在 proguard 中添加一些内容,例如“ignore jaxax*”。确实让它最终构建,但不幸的是,应用程序在启动时崩溃并出现与上述相同的错误。

如果需要更多信息,我的 android 开发者工具目前是 Build: v21.1.0-569685

我一直在运行这些测试的平板电脑是一个不错的小 Nexus 7。

这就是我所知道的所有我可以扔给每个人的东西。再次,非常感谢您阅读所有这些,我很感激。任何推荐的帮助也将不胜感激!

4

1 回答 1

0

如果您在 Eclipse 中看到有关缺少类的警告,则应确保已导出所有库,以便将它们传递给 ProGuard 并包含在生成的 apk 中。

如果您仍然收到有关缺少类的警告,则它们可能不存在于 Android 上,例如java.rmi.Remote. 显然,您的应用程序无论如何都不会使用它们,因此您可以告诉 ProGuard 没关系:

-dontwarn java.rmi.**

请参阅 ProGuard 手册 > 故障排除 >警告:找不到引用的类

org.xml.sax.**如果它们在应用程序库和 Android 运行时之间重复,则类似的类是一个问题。您应该将它们从您的库中删除,因为 Android 运行时中的版本无论如何都会获得优先权。

请参阅 ProGuard 手册 > 疑难解答 >警告:库类 ... 取决于程序类 ...

此外,您应该确保您的配置文件不包含-injars-libraryjars选项。Eclipse 构建过程已经自动为您指定了所有必要-injars-outjars、 和-libraryjars

请参阅 ProGuard 手册 > 故障排除 >注意:程序/库类的重复定义

于 2013-10-02T01:05:24.430 回答