Java – Proguard error / Dalvik error 1 when signing Android application

Proguard error / Dalvik error 1 when signing Android application… here is a solution to the problem.

Proguard error / Dalvik error 1 when signing Android application

Before I start, would like to say hello and thank you for reading this article, I have been experiencing this issue for a while, thank you very much for your help!

I’ve been working on this project for a while now and it’s tested very well. I can run it and it works on my android tablet without bugs or anything. But when I finally tried to publish it and went into “Android Tools -> Export Signed Application,” I returned Dalvik Error 1.

I tried enabling the obfuscator, but left a lot of unreferenced classes. Such as:

[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)

While I’d like to say these shouldn’t exist, I do have libraries that I think have these “unreferenced” classes. Although if anyone knows where these classes are and can tell me, I would love it. While I’m confused as to why this is another issue, this app worked fine before I had to publish it, and I’ve been thinking about that.

I have this project using the current library, maybe this will leak any clues :

  • Facebook SDK
  • Twitter4j
  • ZXing Scan Activity

I’ve tried disabling the obfuscator and this just gives me a Dalvik error. I tried enabling it and the above gave me this error. My Proguard is up to date and currently 4.9. I’ve tried adding something to the obfuscator, like “ignore jaxax*”. This did allow it to finally build, but unfortunately the app crashes on startup with the same error as above.

If I need more information, my Android developer tools are currently yes
Build: v21.1.0-569685

The tablet I’ve been running these tests on is a nice little Nexus 7.

That’s all I know I can throw at everyone. Again, thank you so much for reading all of this, I appreciate that. Any recommended help would also be appreciated!

Solution

If you see a warning about missing classes in Eclipse, you should make sure to export all libraries so that they can be passed to ProGuard and included in the generated apk.

If you still receive warnings about missing classes, they may not exist on Android, such as java.rmi.Remote. Obviously, your app won’t use them anyway, so you can tell ProGuard it’s okay :

-dontwarn java.rmi.**

See the ProGuard manual > troubleshooting > .

Classes like org.xml.sax.** can be problematic if they are duplicated between the application library and the Android runtime. You should remove them from your library because versions in the Android runtime take precedence anyway.

See the ProGuard manual > troubleshooting >

Also, you should make sure that your configuration file does not contain the -injars or -libraryjars options. The Eclipse build process has automatically specified all the required -injars, -outjars, and -libraryjars for you.

See the ProGuard manual > troubleshooting >