I have started including proguard in my project. But getting few warning. I am able to eliminate the warning by adding -dontwarn com.google.**. in proguard.cfg file. Every thing is okk, but I want to eliminate the -dontwarn command entirely from my project. After some investigation I found out these warning is there because I have added a jar in my library project. Now I have few questions here.
1) Do I need to add anything in my project properties for progurad to work on my library project. And also doesn't add any warning
(As per my research I dont need to I guess. Refer to this url)
2) Since my guava.jar is added in my library project, Do I need to some command in my application proguard.cfg file to add library path like -libraryjars. If yes, how do I add the -libraryjars . I am talking about path at this instance. What path should I include or whats the syntax of adding path of the jar which is there in my library project?
Just for refrence I am adding error log.
[2014-12-11 18:00:26 - MyProject] Proguard returned with error code 1. See console
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$ConstantFunction: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$ConstantFunction: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$ConstantFunction: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$ForMapWithDefault: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$ForMapWithDefault: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$FunctionComposition: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$FunctionForMapNoDefault: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Functions$PredicateFunction: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Joiner: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Joiner: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Joiner: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Joiner: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Joiner: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Joiner: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Objects: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Objects: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Objects: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Objects: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Objects: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Objects$ToStringHelper: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Objects$ToStringHelper: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.PairwiseEquivalence: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.PairwiseEquivalence: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.PairwiseEquivalence: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.PairwiseEquivalence: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Platform: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Preconditions: can't find referenced class javax.annotation.Nullable
[2014-12-11 18:00:26 - MyProject] Warning: com.google.common.base.Preconditions: can't find referenced class javax.annotation.Nullable
more few hundred lines of error.
Can anybody help me in this? Any help will be appreciated.
The warnings are harmless in this case: the missing class is not necessary for the correct processing or execution of your code. You can either add the jar that contains javax.annotation.Nullable as a dependency in your project, or you can suppress the warnings. This works indeed:
-dontwarn com.google.**
Alternatively, this is slightly more succinct:
-dontwarn javax.annotation.Nullable
Related
We are using shopify Android buy sdk to develop this app
compile 'com.shopify.mobilebuysdk:buy3:3.1.1'
compile 'com.shopify.mobilebuysdk:buy3-pay-support:1.0.2'
Error and Warning
warning: com.facebook.cache.common.cacheerrorlogger: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.common.cacheevent: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.common.debuggingcachekey: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.common.noopcacheerrorlogger: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.disk.defaultdiskstorage$fileinfo: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.disk.diskcacheconfig: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.disk.diskcacheconfig$builder: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.disk.diskstoragecache: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.cache.disk.diskstoragecache: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.disk.diskstoragecache: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.cache.disk.dynamicdefaultdiskstorage$state: can't find referenced class javax.annotation.nullable
warning: com.facebook.cache.disk.settablecacheevent: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.executors.handlerexecutorserviceimpl: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.executors.scheduledfutureimpl: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.internal.closeables: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.internal.objects: can't find referenced class javax.annotation.checkreturnvalue
warning: com.facebook.common.internal.objects: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.internal.objects$tostringhelper: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.internal.preconditions: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.internal.throwables: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.media.mediautils: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.references.closeablereference: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.common.references.closeablereference: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.references.oomsoftreference: can't find referenced class javax.annotation.nonnull
warning: com.facebook.common.references.oomsoftreference: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.references.sharedreference: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.common.statfs.statfshelper: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.common.statfs.statfshelper: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.statfs.statfshelper: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.common.util.hashcodeutil: can't find referenced class javax.annotation.nullable
warning: com.facebook.common.util.uriutil: can't find referenced class javax.annotation.nullable
warning: com.facebook.datasource.abstractdatasource: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.datasource.abstractdatasource: can't find referenced class javax.annotation.nullable
warning: com.facebook.datasource.datasource: can't find referenced class javax.annotation.nullable
warning: com.facebook.datasource.firstavailabledatasourcesupplier: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.datasource.firstavailabledatasourcesupplier$firstavailabledatasource: can't find referenced class javax.annotation.nullable
warning: com.facebook.datasource.firstavailabledatasourcesupplier$firstavailabledatasource: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.datasource.increasingqualitydatasourcesupplier: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.datasource.increasingqualitydatasourcesupplier$increasingqualitydatasource: can't find referenced class javax.annotation.nullable
warning: com.facebook.datasource.increasingqualitydatasourcesupplier$increasingqualitydatasource: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.datasource.increasingqualitydatasourcesupplier$increasingqualitydatasource: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.drawee.backends.pipeline.drawablefactory: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.backends.pipeline.draweeconfig: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.backends.pipeline.fresco: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.backends.pipeline.pipelinedraweecontroller: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.backends.pipeline.pipelinedraweecontrollerbuilder: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.backends.pipeline.pipelinedraweecontrollerbuildersupplier: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.backends.pipeline.pipelinedraweecontrollerfactory: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.controller.abstractdraweecontroller: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.controller.abstractdraweecontroller: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.drawee.controller.abstractdraweecontrollerbuilder: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.controller.abstractdraweecontrollerbuilder$1: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.controller.basecontrollerlistener: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.controller.controllerlistener: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.controller.forwardingcontrollerlistener: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.controller.forwardingcontrollerlistener: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.drawee.drawable.arraydrawable: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.drawable.drawableutils: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.drawable.roundedbitmapdrawable: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.drawable.scalingutils$interpolatingscaletype: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.generic.genericdraweehierarchy: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.generic.genericdraweehierarchybuilder: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.generic.genericdraweehierarchyinflater: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.generic.rootdrawable: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.generic.wrappingutils: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.interfaces.draweecontroller: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.interfaces.simpledraweecontrollerbuilder: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.view.aspectratiomeasure: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.view.draweeholder: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.view.draweeview: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.view.genericdraweeview: can't find referenced class javax.annotation.nullable
warning: com.facebook.drawee.view.simpledraweeview: can't find referenced class javax.annotation.nullable
warning: com.facebook.imageformat.imageformat: can't find referenced class javax.annotation.nullable
warning: com.facebook.imageformat.imageformat$formatchecker: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.animated.factory.animatedfactory: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.bitmaps.artbitmapfactory: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.bitmaps.honeycombbitmapfactory: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.bitmaps.platformbitmapfactory: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.bitmaps.platformbitmapfactory$bitmapcreationobserver: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.bitmapmemorycachekey: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.bitmapmemorycachekey: can't find referenced class javax.annotation.concurrent.immutable
warning: com.facebook.imagepipeline.cache.cachekeyfactory: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.countinglrumap: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.cache.countinglrumap: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.countinglrumap: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.cache.countingmemorycache: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.cache.countingmemorycache: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.countingmemorycache: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.cache.countingmemorycache$entry: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.defaultcachekeyfactory: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.memorycache: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.cache.stagingarea: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.common.imagedecodeoptions: can't find referenced class javax.annotation.concurrent.immutable
warning: com.facebook.imagepipeline.common.priority: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.core.imagepipeline: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.core.imagepipelineconfig: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.core.imagepipelinefactory: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.datasource.abstractproducertodatasourceadapter: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.datasource.abstractproducertodatasourceadapter: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.datasource.abstractproducertodatasourceadapter$1: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.datasource.basebitmapdatasubscriber: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.datasource.closeableproducertodatasourceadapter: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.datasource.closeableproducertodatasourceadapter: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.datasource.listdatasource: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.datasource.listdatasource: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.datasource.listdatasource$internaldatasubscriber: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.datasource.producertodatasourceadapter: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.datasource.settabledatasource: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.datasource.settabledatasource: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.image.closeablestaticbitmap: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.image.closeablestaticbitmap: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.image.encodedimage: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.image.encodedimage: can't find referenced class javax.annotation.concurrent.immutable
warning: com.facebook.imagepipeline.listener.baserequestlistener: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.listener.forwardingrequestlistener: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.listener.requestlogginglistener: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.listener.requestlogginglistener: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.memory.basepool: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.memory.basepool$counter: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.memory.bitmapcounter: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.memory.bitmappool: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.memory.bucket: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.memory.bucket: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.memory.flexbytearraypool: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.memory.genericbytearraypool: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.memory.nativememorychunkpool: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.memory.nativepooledbytebuffer: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.memory.nativepooledbytebuffer: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.memory.nativepooledbytebufferfactory: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.memory.nativepooledbytebufferoutputstream: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.memory.oomsoftreferencebucket: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.memory.poolconfig: can't find referenced class javax.annotation.concurrent.immutable
warning: com.facebook.imagepipeline.memory.poolfactory: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.memory.poolparams: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.memory.pooledbytearraybufferedinputstream: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.memory.pooledbytebufferinputstream: can't find referenced class javax.annotation.concurrent.notthreadsafe
warning: com.facebook.imagepipeline.memory.sharedbytearray: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.platform.artdecoder: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.platform.gingerbreadpurgeabledecoder: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.platform.kitkatpurgeabledecoder: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.postprocessors.iterativeboxblurpostprocessor: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.baseconsumer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.baseconsumer: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.producers.basenetworkfetcher: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.baseproducercontext: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.baseproducercontext: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.decodeproducer$progressivedecoder: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.decodeproducer$progressivedecoder: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.jobscheduler: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.localcontenturifetchproducer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.localcontenturithumbnailfetchproducer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.multiplexproducer: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.multiplexproducer: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.producers.multiplexproducer$multiplexer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.multiplexproducer$multiplexer: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.networkfetchproducer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.networkfetcher: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.postprocessorproducer$postprocessorconsumer: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.postprocessorproducer$postprocessorconsumer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.postprocessorproducer$repeatedpostprocessorconsumer: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.postprocessorproducer$repeatedpostprocessorconsumer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.producerlistener: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.resizeandrotateproducer$transformingconsumer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.producers.settableproducercontext: can't find referenced class javax.annotation.concurrent.threadsafe
warning: com.facebook.imagepipeline.producers.throttlingproducer: can't find referenced class javax.annotation.concurrent.guardedby
warning: com.facebook.imagepipeline.producers.webptranscodeproducer$webptranscodeconsumer: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.request.basepostprocessor: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.request.imagerequest: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.request.imagerequest: can't find referenced class javax.annotation.concurrent.immutable
warning: com.facebook.imagepipeline.request.imagerequestbuilder: can't find referenced class javax.annotation.nullable
warning: com.facebook.imagepipeline.request.postprocessor: can't find referenced class javax.annotation.nullable
warning: com.facebook.imageutils.bitmaputil: can't find referenced class javax.annotation.nullable
warning: com.github.siyamed.shapeimageview.path.parser.svgtopath: can't find referenced class org.kxml2.io.kxmlparser
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.okhttpclient
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.cache
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.cachecontrol
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.cachecontrol$builder
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.request$builder
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.call
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.response
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.responsebody
warning: com.squareup.picasso.okhttpdownloader: can't find referenced class com.squareup.okhttp.request
warning: okio.deflatersink: can't find referenced class org.codehaus.mojo.animal_sniffer.ignorejrerequirement
warning: okio.okio: can't find referenced class java.nio.file.files
warning: okio.okio: can't find referenced class java.nio.file.path
warning: okio.okio: can't find referenced class java.nio.file.openoption
warning: okio.okio: can't find referenced class org.codehaus.mojo.animal_sniffer.ignorejrerequirement
When we are enabled minifyEnabled true, it showing this errors and unable to developed release apk and there are more errors.
I want to signed my application so i had enabled proguard to my application but when i signed then it show error like this in console
[2016-03-09 09:09:44 - xxx] Proguard returned with error code 1. See console
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find superclass or interface org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzac: can't find referenced class android.net.http.AndroidHttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzac: can't find referenced class android.net.http.AndroidHttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.StatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzt: can't find referenced class org.apache.http.Header
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpDelete
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpGet
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpHead
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpOptions
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPut
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpTrace
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.entity.ByteArrayEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced method 'void addHeader(java.lang.String,java.lang.String)' in class com.google.android.gms.internal.zzw$zza
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpDelete
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpGet
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpHead
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpOptions
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPost
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPut
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpPut
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpTrace
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.entity.ByteArrayEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.HttpClient
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw: can't find referenced class org.apache.http.client.methods.HttpUriRequest
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find referenced method 'void setURI(java.net.URI)' in class com.google.android.gms.internal.zzw$zza
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzw$zza: can't find referenced class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateParseException
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateUtils
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzy: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzy: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.ProtocolVersion
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHeader
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicStatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.ProtocolVersion
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.entity.BasicHttpEntity
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHeader
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicHttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicStatusLine
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpResponse
[2016-03-09 09:09:44 - xxx] Warning: com.google.android.gms.internal.zzz: can't find referenced class org.apache.http.HttpEntity
[2016-03-09 09:09:44 - xxx] You should check if you need to specify additional program jars.
[2016-03-09 09:09:44 - xxx] Warning: there were 87 unresolved references to classes or interfaces.
[2016-03-09 09:09:44 - xxx] You may need to specify additional library jars (using '-libraryjars').
[2016-03-09 09:09:44 - xxx] Warning: there were 2 unresolved references to program class members.
[2016-03-09 09:09:44 - xxx] Your input classes appear to be inconsistent.
[2016-03-09 09:09:44 - xxx] You may need to recompile them and try again.
[2016-03-09 09:09:44 - xxx] Alternatively, you may have to specify the option
[2016-03-09 09:09:44 - xxx] '-dontskipnonpubliclibraryclassmembers'.
[2016-03-09 09:09:44 - xxx] java.io.IOException: Please correct the above warnings first.
[2016-03-09 09:09:44 - xxx] at proguard.Initializer.execute(Initializer.java:321)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.initialize(ProGuard.java:211)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.execute(ProGuard.java:86)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.main(ProGuard.java:492)
Is there a way to fix it? as i know the proguard error in there with google play service too
and in there at this line
[2016-03-09 09:09:44 - xxx] You should check if you need to specify additional program jars.
[2016-03-09 09:09:44 - xxx] Warning: there were 87 unresolved references to classes or interfaces.
[2016-03-09 09:09:44 - xxx] You may need to specify additional library jars (using '-libraryjars').
[2016-03-09 09:09:44 - xxx] Warning: there were 2 unresolved references to program class members.
[2016-03-09 09:09:44 - xxx] Your input classes appear to be inconsistent.
[2016-03-09 09:09:44 - xxx] You may need to recompile them and try again.
[2016-03-09 09:09:44 - xxx] Alternatively, you may have to specify the option
[2016-03-09 09:09:44 - xxx] '-dontskipnonpubliclibraryclassmembers'.
[2016-03-09 09:09:44 - xxx] java.io.IOException: Please correct the above warnings first.
[2016-03-09 09:09:44 - xxx] at proguard.Initializer.execute(Initializer.java:321)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.initialize(ProGuard.java:211)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.execute(ProGuard.java:86)
[2016-03-09 09:09:44 - xxx] at proguard.ProGuard.main(ProGuard.java:492)
there is something unresolved
file in proguard project
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
#-keep class * extends java.util.ListResourceBundle {
# protected Object[][] getContents();
#}
#-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
# public static final *** NULL;
#}
#-keepnames #com.google.android.gms.common.annotation.KeepName class *
#-keepclassmembernames class * {
# #com.google.android.gms.common.annotation.KeepName *;
#}
#-keepnames class * implements android.os.Parcelable {
# public static final ** CREATOR;
#}
-keep class com.google.android.gms.ads.**
I use "#" to rules in there because i dont know the function so ijust use -keep class com.google.android.gms.ads.**
can anyone explain this why?
please replace your proguard file with this proguard file.
Proguardrule.pro
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
#-dontoptimize
#-dontpreverify
# If you want to enable optimization, you should include the
# following:
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
-optimizationpasses 5
-allowaccessmodification
#
# Note that you cannot just include these flags in your own
# configuration file; if you are including this file, optimization
# will be turned off. You'll need to either edit this file, or
# duplicate the contents of this file and remove the include of this
# file from your project's proguard.config path property.
-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.BackupAgent
-keep public class * extends android.preference.Preference
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.support.v4.app.DialogFragment
-keep public class * extends com.actionbarsherlock.app.SherlockListFragment
-keep public class * extends com.actionbarsherlock.app.SherlockFragment
-keep public class * extends com.actionbarsherlock.app.SherlockFragmentActivity
-keep public class * extends android.app.Fragment
-keep public class com.android.vending.licensing.ILicensingService
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
-dontwarn com.google.ads.**
I keep getting the error message (far below) when running ProGuard on my app. I do have external library files in my app.
This is my proguard-android.txt file code
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
-dontoptimize
-dontpreverify
# Note that if you want to enable optimization, you cannot just
# include optimization flags in your own project configuration file;
# instead you will need to point to the
# "proguard-android-optimize.txt" file instead of this one from your
# project.properties file.
-keepattributes *Annotation*
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}
# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}
# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
-keep class javax.** { *; }
-keep class org.** { *; }
-keep class com.squareup.** { *; }
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
-dontwarn javax.management.**
-dontwarn java.lang.management.**
-dontwarn org.apache.log4j.**
-dontwarn org.apache.commons.logging.**
-dontwarn org.slf4j.**
-dontwarn org.json.*
-dontwarn com.squareup.okhttp.OkHttpClient.*
Logcat error message:
[2014-08-26 18:25:15 - Scootr] Proguard returned with error code 1. See console
[2014-08-26 18:25:15 - Scootr] Note: there were 1 duplicate class definitions.
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find superclass or interface javax.servlet.ServletContextListener
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-08-26 18:25:15 - Scootr] Warning: com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Hierarchy
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Hierarchy
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Hierarchy
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextListener
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent
[2014-08-26 18:25:15 - Scootr] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent
[2014-08-26 18:25:15 - Scootr] You should check if you need to specify additional program jars.
[2014-08-26 18:25:15 - Scootr] Warning: there were 87 unresolved references to classes or interfaces.
[2014-08-26 18:25:15 - Scootr] You may need to specify additional library jars (using '-libraryjars').
[2014-08-26 18:25:15 - Scootr] java.io.IOException: Please correct the above warnings first.
[2014-08-26 18:25:15 - Scootr] at proguard.Initializer.execute(Initializer.java:321)
[2014-08-26 18:25:15 - Scootr] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-08-26 18:25:15 - Scootr] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-08-26 18:25:15 - Scootr] at proguard.ProGuard.main(ProGuard.java:492)
add this to your proguard.cfg:
#### -- Picasso --
-dontwarn com.squareup.picasso.**
#### -- OkHttp --
-dontwarn com.squareup.okhttp.internal.**
#### -- Apache Commons --
-dontwarn org.apache.commons.logging.**
You line -dontwarn com.squareup.okhttp.OkHttpClient.* not correlated with Warning: com.squareup.picasso.OkHttpDownloader.
May be you try change package name in proguard.cfg
Added:
Try add in proguard.cfg
-dontwarn
-injars bin/classes
-injars libs
-outjars bin/classes-processed.jar
-optimizationpasses 5
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dump class_files.txt
-printseeds seeds.txt
-printusage unused.txt
-printmapping mapping.txt
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-allowaccessmodification
-repackageclasses ''
-keepattributes Signature
I understand between proguard.cfg or proguard-project.txt (proguard-android.txt) file. Try this code in both files.
Check if you have deleted the library from /libs , I deleted the jar file I put and it generated my apk instantly! :) Good luck!
Have been battling with Proguard all day and have tried many examples and solutions on the official Proguard site as well as StackOverflow.
I have a large project I need to obfuscate, which has a number of referenced library projects and Jars.
I am getting 725 warnings from proguard from 2 libs, com.google.common and twitter4j.
I can happily get the project to compile if I add the following:
-dontwarn com.google.common.**
-dontwarn twitter4j.**
However, the app crashes instantly on open, so this seems to just be a way of hiding an issue, not fixing it.
The proguard-project.txt is in the project root and its config is in the project.properties file as below.
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
Here is my proguard-project.txt file
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-dontshrink
-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 com.google.code.** { *; }
-keep class java.lang.management.** { *; }
-keep class com.google.common.** { *; }
-libraryjars C:/adt-bundle-windows/sdk/platforms/android-19/android.jar
-libraryjars C:/adt-bundle-windows/sdk/extras/android/support/v4/android-support-v4.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/commons-codec.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/sqlcipher.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/twitter4j-core-3.0.3.jar
-libraryjars C:/svn/android/MyAppLib/trunk/libs/guava-r09.jar
-libraryjars C:/adt-bundle-windows/sdk/platforms/android-19/android.jar
-libraryjars C:/adt-bundle-windows/sdk/extras/android/support/v4/android-support-v4.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/maps.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/effects.jar
-libraryjars C:/adt-bundle-windows/sdk/add-ons/addon-google_apis-google-19/libs/usb.jar
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.content.Context {
public void *(android.view.View);
public void *(android.view.MenuItem);
}
-keepclassmembers class * implements android.os.Parcelable {
static ** CREATOR;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
-keepclassmembers class * {
#android.webkit.JavascriptInterface <methods>;
}
-dontwarn android.support.**
And Here is the truncated error log
[2014-01-13 14:00:07 - MyApp] Proguard returned with error code 1. See console
[2014-01-13 14:00:07 - MyApp] Note: there were 9032 duplicate class definitions.
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find superclass or interface javax.management.DynamicMBean
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
[2014-01-13 14:00:07 - MyApp] Warning: com.google.common.base.Functions$ConstantFunction: can't find referenced class javax.annotation.Nullable
*********************************** ANOTHER 500 LINES OF com.google.common ERRORS ******************************************
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class java.lang.management.ManagementFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.ObjectName
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanServer
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.InstanceAlreadyExistsException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MBeanRegistrationException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.NotCompliantMBeanException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.TwitterAPIMonitor: can't find referenced class javax.management.MalformedObjectNameException
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.CommonsLoggingLoggerFactory: can't find referenced class org.apache.commons.logging.LogFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Level
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLogger: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.Log4JLoggerFactory: can't find referenced class org.apache.log4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLogger: can't find referenced class org.slf4j.Logger
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.internal.logging.SLF4JLoggerFactory: can't find referenced class org.slf4j.LoggerFactory
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
[2014-01-13 14:00:07 - MyApp] Warning: twitter4j.management.APIStatisticsOpenMBean: can't find referenced class javax.management.openmbean.CompositeType
*********************************** ANOTHER 500 LINES OF twitter4j ERRORS ******************************************
[2014-01-13 14:00:07 - MyApp] You should check if you need to specify additional program jars.
[2014-01-13 14:00:07 - MyApp] Warning: there were 725 unresolved references to classes or interfaces.
[2014-01-13 14:00:07 - MyApp] You may need to specify additional library jars (using '-libraryjars').
[2014-01-13 14:00:07 - MyApp] java.io.IOException: Please correct the above warnings first.
[2014-01-13 14:00:07 - MyApp] at proguard.Initializer.execute(Initializer.java:321)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.initialize(ProGuard.java:211)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.execute(ProGuard.java:86)
[2014-01-13 14:00:07 - MyApp] at proguard.ProGuard.main(ProGuard.java:492)
EDIT** Stack trace from crash, clearer now that it is linked to sqlcipher
E/Database(18203): Can't find SQLiteDatabase.mNativeHandle
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteCompiledSql
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteQuery
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteProgram
E/Cursor(18203): Can't find net/sqlcipher/database/SQLiteStatement
E/CursorWindow(18203): Can't find net/sqlcipher/CursorWindow
D/AndroidRuntime(18203): Shutting down VM
W/dalvikvm(18203): threadid=1: thread exiting with uncaught exception (group=0x415e9ba8)
E/AndroidRuntime(18203): FATAL EXCEPTION: main
E/AndroidRuntime(18203): Process: com.mycompany.android.myapp, PID: 18203
E/AndroidRuntime(18203): java.lang.NoClassDefFoundError: net/sqlcipher/CursorWindow
E/AndroidRuntime(18203): at java.lang.Runtime.nativeLoad(Native Method)
E/AndroidRuntime(18203): at java.lang.Runtime.doLoad(Runtime.java:421)
E/AndroidRuntime(18203): at java.lang.Runtime.loadLibrary(Runtime.java:362)
E/AndroidRuntime(18203): at java.lang.System.loadLibrary(System.java:526)
E/AndroidRuntime(18203): at net.sqlcipher.database.SQLiteDatabase.a(Unknown Source)
E/AndroidRuntime(18203): at net.sqlcipher.database.SQLiteDatabase.a(Unknown Source)
E/AndroidRuntime(18203): at com.mycompany.android.myapplib.sqlite.MyProvider.onCreate(Unknown Source)
E/AndroidRuntime(18203): at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
E/AndroidRuntime(18203): at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
E/AndroidRuntime(18203): at android.app.ActivityThread.installProvider(ActivityThread.java:4790)
E/AndroidRuntime(18203): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
E/AndroidRuntime(18203): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
E/AndroidRuntime(18203): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime(18203): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime(18203): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18203): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(18203): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(18203): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18203): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(18203): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(18203): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(18203): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteStatement
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteProgram
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteQuery
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoClassDefFoundError: net/sqlcipher/database/SQLiteCompiledSql
E/AndroidRuntime(18203): ... 22 more
E/AndroidRuntime(18203): Caused by: java.lang.NoSuchFieldError: no field with name='mNativeHandle' signature='I' in class Lnet/sqlcipher/database/SQLiteDatabase;
E/AndroidRuntime(18203): ... 22 more
These are the config I've used in the past for SQLcipher
-keep public class net.sqlcipher.** {
*;
}
-keep public class net.sqlcipher.database.** {
*;
}
I'll suggest you to add thoses 2 lines in your proguard file :
-dontwarn javax.management.**
-dontwarn org.apache.commons.logging.**
-keep class net.sqlcipher.** { *; }
-dontwarn net.sqlcipher.**
For more information
I try to build Google Drive SDK examples in Eclipse v22.01:
(The example website is as follows:)
https://developers.google.com/drive/quickstart-android
When I used debug build,it builded fine and executed fine on my table device.
However, when I tried to build it on release mode, I failed.
My process is as follows:
1. Go to "File"->"Export"
2. Create private keystore (This step succeeded.)
3. Build apk
I've checked the post Update your Proguard and downloaded and replaced jars in Proguard
I also checked the postCheck the '"Android Private Libraries' and checked items on "Order and Export" tab. But Still failed.
[Edit 1] I found the solution.
Just Uncheck the 'Drive API' (See the picture for reference)
(I am not sure if 'Android Dependencies' is needed or not. Maybe this could also be unchecked.)
I also add '-dontwarn com.google.**' to 'proguard-android.txt'
And then it worked.
Here are the errors messages I got:
[2013-07-24 12:03:43 - MainActivity] Proguard returned with error code 1. See console
[2013-07-24 12:03:43 - MainActivity] Note: there were 1081 duplicate class definitions.
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$color
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$color
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$color
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$drawable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.internal.aa: can't find referenced class com.google.android.gms.R$string
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R$styleable
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.util.concurrent.ServiceManager: can't find referenced class javax.inject.Inject
[2013-07-24 12:03:43 - MainActivity] Warning: com.google.common.util.concurrent.ServiceManager: can't find referenced class javax.inject.Singleton
[2013-07-24 12:03:43 - MainActivity] Warning: there were 67 unresolved references to classes or interfaces.
[2013-07-24 12:03:43 - MainActivity] You may need to add missing library jars or update their versions.
[2013-07-24 12:03:43 - MainActivity] If your code works fine without the missing classes, you can suppress
[2013-07-24 12:03:43 - MainActivity] the warnings with '-dontwarn' options.
[2013-07-24 12:03:43 - MainActivity] java.io.IOException: Please correct the above warnings first.
[2013-07-24 12:03:43 - MainActivity] at proguard.Initializer.execute(Initializer.java:330)
[2013-07-24 12:03:43 - MainActivity] at proguard.ProGuard.initialize(ProGuard.java:212)
[2013-07-24 12:03:43 - MainActivity] at proguard.ProGuard.execute(ProGuard.java:87)
[2013-07-24 12:03:43 - MainActivity] at proguard.ProGuard.main(ProGuard.java:484)
I found the answer, Please refer the "Edit 1" part.
Hope this would help anyone who got the same problem.
From your screenshot (you have the google-play-services.jar), it looks like project isn't being built correct and this will only lead to more issues in the future.
Based on the link you provided, https://developers.google.com/drive/quickstart-android that documentation Does tell you to just use the jar.
However, there are more complete instructions at https://developer.android.com/google/play-services/setup.html
Here it instructs to
use the library project at /extras/google/google_play_services/libproject/google-play-services_lib/
make proguard entries
modify your AndroidManifest.xml