I am using Parse on a project. The project uses my own Android library project which has the Parse jars in it. When I try to generate a signed apk, gradle gives the following issue:
:exampleApp:proguardRelease Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
superclass or interface com.squareup.okhttp.RequestBody Warning:
com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.OkHttpClient Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.OkHttpClient Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.OkHttpClient Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.OkHttpClient Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.OkHttpClient Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.OkHttpClient Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.OkHttpClient Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.OkHttpClient Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Call Warning: com.parse.ParseOkHttpClient: can't
find referenced class com.squareup.okhttp.Response Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Response Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.ResponseBody Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.ResponseBody Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Response Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Response Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Request$Builder
Warning: com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Call Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.ResponseBody Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Request Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.OkHttpClient Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Call Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Response Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Call Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Call Warning: com.parse.ParseOkHttpClient: can't
find referenced class com.squareup.okhttp.Response Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Response Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Request Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Request$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers$Builder Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Headers Warning: com.parse.ParseOkHttpClient:
can't find referenced class com.squareup.okhttp.Request Warning:
com.parse.ParseOkHttpClient: can't find referenced class
com.squareup.okhttp.Response Warning: com.parse.ParseOkHttpClient$1:
can't find referenced class com.squareup.okhttp.Call Warning:
com.parse.ParseOkHttpClient$1: can't find referenced class
com.squareup.okhttp.Call Warning: com.parse.ParseOkHttpClient$1: can't
find referenced class com.squareup.okhttp.Call Warning:
com.parse.ParseOkHttpClient$1: can't find referenced class
com.squareup.okhttp.Call Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class com.squareup.okhttp.RequestBody Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class com.squareup.okhttp.MediaType Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class okio.BufferedSink Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class com.squareup.okhttp.RequestBody Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class com.squareup.okhttp.MediaType Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class okio.BufferedSink Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class com.squareup.okhttp.MediaType Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class okio.BufferedSink Warning:
com.parse.ParseOkHttpClient$CountingOkHttpRequestBody: can't find
referenced class okio.BufferedSink Warning: there were 67 unresolved
references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
:exampleApp:proguardRelease FAILED
FAILURE: Build failed with an exception.
Edit:
Per #karama's suggestion, I added this to my proguard rules:
-keepattributes *Annotation*
-keepattributes Signature
-dontwarn com.squareup.**
-keep class com.squareup.** { *; }
-dontwarn com.parse.ParseOkHttpClient**
-keep class com.parse.ParseOkHttpClient** { *; }
# Proguard configuration for Jackson 2.x (fasterxml package instead of codehaus package)
-keep class com.fasterxml.jackson.databind.ObjectMapper {
public <methods>;
protected <methods>;
}
-keep class com.fasterxml.jackson.databind.ObjectWriter {
public ** writeValueAsString(**);
}
-dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
Yet, now I get the following:
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find
referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: there were 5 unresolved references to classes or interfaces.
If I fix it with adding:
-dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
When the app runs, it crashes. I saw this issue here but with no resolution: https://stackoverflow.com/a/11249755/197127
Running the app with -dontobfuscate works fine.
The error is not of parse sdk, it occures because of okHttp. Add below lines in your proguard.
-keepattributes *Annotation*
-keepattributes Signature
-dontwarn com.squareup.**
-keep class com.squareup.** { *; }
Edit
for com.fasterxml.jackson add below code :
-keep class com.fasterxml.jackson.databind.ObjectMapper {
public <methods>;
protected <methods>;
}
-keep class com.fasterxml.jackson.databind.ObjectWriter {
public ** writeValueAsString(**);
}
reference : https://github.com/krschultz/android-proguard-snippets/issues/19
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.
This is my proguard rules :
-keepattributes SourceFile,LineNumberTable
-keep class com.parse.*{ *; }
-keepclasseswithmembernames class * {
native <methods>;
}
i've searched and used lots of codes but none of them worked . these are the errors I got :
Warning: com.parse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionDefaultAudience
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
You should check if you need to specify additional program jars.
please do not tell me to use dontwarn ,yes it manage to build the app but the app will not be run
How can I solve this problem ?
You have to use this
-keep class com.parse.** { *; }
i.e. ** instead of *
and maybe this too
-keepattributes *Annotation*
Please try to use below in your progaurd file :
#Parse
-keep class com.parse.** { *; }
-keepattributes Signature
Hope It will help.!!
I want to use proguard for my application , I'm using eclipse . This is the config file :
-dontwarn com.parse.**
-keep class com.facebook.** {
*;
}
-keepattributes Signature
#When not preverifing in a case-insensitive filing system, such as Windows. This tool will unpack your processed jars,(if using windows you should then use):
-dontusemixedcaseclassnames
#Specifies not to ignore non-public library classes. As of version 4.5, this is the default setting
-dontskipnonpubliclibraryclasses
# 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
-dontwarn android.support.**
#Specifies to write out some more information during processing. If the program terminates with an exception, this option will print out the entire stack trace, instead of just the exception message.
-verbose
#The -optimizations option disables some arithmetic simplifications that Dalvik 1.0 and 1.5 can't handle. Note that the Dalvik VM also can't handle aggressive overloading (of static fields).
#To understand or change this check http://proguard.sourceforge.net/index.html#/manual/optimizations.html
#-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
# 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.
#To repackage classes on a single package
#-repackageclasses ''
#Uncomment if using annotations to keep them.
#-keepattributes *Annotation*
#Keep classes that are referenced on the AndroidManifest
-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.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
#Compatibility library
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.app.Fragment
#To maintain custom components names that are used on layouts XML.
#Uncomment if having any problem with the approach below
#-keep public class custom.components.package.and.name.**
# 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*();
}
#To remove debug logs:
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
public static *** w(...);
}
#To avoid changing names of methods invoked on layout's onClick.
# Uncomment and add specific method names if using onClick on layouts
#-keepclassmembers class * {
# public void onClickButton(android.view.View);
#}
#Maintain java native methods
-keepclasseswithmembernames class * {
native <methods>;
}
#To maintain custom components names that are used on layouts XML:
-keep public class * extends android.view.View {
public <init>(android.content.Context);
}
-keep public class * extends android.view.View {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keep public class * extends android.view.View {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
#Maintain enums
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
#To keep parcelable classes (to serialize - deserialize objects to sent through Intents)
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
#Keep the R
-keepclassmembers class **.R$* {
public static <fields>;
}
When I export the application and build the apk file ,it gives me the "Progaurd return error 1" and the in the consul it returns these errors :
Proguard returned with error code 1. See console
Warning: com.parse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SharedPreferencesTokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$Builder
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.SessionDefaultAudience
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session$OpenRequest
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.TokenCachingStrategy
Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook$ServiceListener
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
Warning: com.parse.FacebookAuthenticationProvider$1: can't find referenced class com.facebook.android.FacebookError
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session$StatusCallback
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.Session
Warning: com.parse.FacebookAuthenticationProvider$2: can't find referenced class com.facebook.SessionState
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request$Callback
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.FacebookRequestError
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.model.GraphObject
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Request
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find referenced class com.facebook.Response
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.android.Facebook
Warning: com.parse.ParseFacebookUtils: can't find referenced class com.facebook.Session
You should check if you need to specify additional program jars.
Warning: there were 82 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:321)
at proguard.ProGuard.initialize(ProGuard.java:211)
at proguard.ProGuard.execute(ProGuard.java:86)
at proguard.ProGuard.main(ProGuard.java:492)
There are some external libraries that I use in my application , I just need the progaurd for obfuscation
Could you help me to solve this problem ?
Replace
-keep class com.facebook.** {
*;
}
with,
-dontwarn com.facebook.**
I am using proguard to obfuscate my code in Android Studio.
I have deleted many classes from my project and do not use them but proguard warns me about those deleted classes. If i don't use proguard, the app compiles fine.
I tried Invalidate Caches/Restart option but made no difference.
Here are the warnings :
Warning: com.mypack.myapp.FaceServiceClient$1: can't find superclass or interface com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$2: can't find superclass or interface com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$3: can't find superclass or interface com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$4: can't find superclass or interface com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$5: can't find superclass or interface com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$6: can't find superclass or interface com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$7: can't find superclass or interface com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.AddFaceToPersonActivity$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.SampleApp
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.SampleApp
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$AddFaceTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.SampleApp
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.SampleApp
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$DetectionTask: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter
Warning: com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter
Warning: com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity
Warning: com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter
Warning: com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter
Warning: com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter$1: can't find referenced class com.mypack.myapp.AddFaceToPersonActivity$FaceGridViewAdapter
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced method 'java.lang.reflect.Type getType()' in program class com.mypack.myapp.FaceServiceClient$1
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced method 'java.lang.reflect.Type getType()' in program class com.mypack.myapp.FaceServiceClient$2
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced method 'java.lang.reflect.Type getType()' in program class com.mypack.myapp.FaceServiceClient$3
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced method 'java.lang.reflect.Type getType()' in program class com.mypack.myapp.FaceServiceClient$4
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced method 'java.lang.reflect.Type getType()' in program class com.mypack.myapp.FaceServiceClient$5
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced method 'java.lang.reflect.Type getType()' in program class com.mypack.myapp.FaceServiceClient$6
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced method 'java.lang.reflect.Type getType()' in program class com.mypack.myapp.FaceServiceClient$7
Warning: com.mypack.myapp.FaceServiceClient: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.FaceServiceClient$1: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$1: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$1: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$2: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$2: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$2: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$3: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$3: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$3: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$4: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$4: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$4: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$5: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$5: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$5: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$6: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$6: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$6: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$7: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$7: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.FaceServiceClient$7: can't find referenced class com.google.gson.reflect.TypeToken
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.mypack.myapp.ServiceCallException
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.google.gson.Gson
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.mypack.myapp.ServiceCallException
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.mypack.myapp.ServiceCallException
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.mypack.myapp.ServiceCallException
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.mypack.myapp.ServiceCallException
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.mypack.myapp.ServiceCallException
Warning: com.mypack.myapp.WebServiceRequest: can't find referenced class com.mypack.myapp.ServiceCallException
Here is the proguard related part in build.gradle :
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
Here is proguard-rules.pro file :
-verbose
-dontwarn android.support.**
-keep class -verbose
-dontwarn android.support.**
-keep class -verbose
-dontwarn android.support.**
-keep class com.mypack.myapp.R {
*;
}
#below commands for including the line numbers in traces
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable.R {
*;
}
For anyone having the same problem, the problem is solved by simply deleting the entire build folder.
I have built an application that uses JacksonJson as a library. I am trying to export it as a signed application and getting the proguard error. I have tried various solutions posted on the internet, but none seems to work. Any help will be appreciated.
Console:
Proguard returned with error code 1. See console
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find superclass or interface javax.ws.rs.ext.ExceptionMapper
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find superclass or interface javax.ws.rs.ext.ExceptionMapper
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find superclass or interface javax.ws.rs.ext.MessageBodyReader
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find superclass or interface javax.ws.rs.ext.MessageBodyWriter
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response$Status
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.ext.ExceptionMapper
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response$Status
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.ext.ExceptionMapper
Warning: com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper: can't find referenced class javax.ws.rs.ext.Provider
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response$Status
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.ext.ExceptionMapper
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response$Status
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response$ResponseBuilder
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.ext.ExceptionMapper
Warning: com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper: can't find referenced class javax.ws.rs.ext.Provider
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.StreamingOutput
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.Response
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.ext.MessageBodyReader
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.ext.MessageBodyWriter
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MultivaluedMap
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MultivaluedMap
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MultivaluedMap
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MultivaluedMap
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MultivaluedMap
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MultivaluedMap
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MultivaluedMap
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.core.MediaType
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.ext.MessageBodyReader
Warning: com.fasterxml.jackson.jaxrs.base.ProviderBase: can't find referenced class javax.ws.rs.ext.MessageBodyWriter
You should check if you need to specify additional program jars.
Warning: there were 67 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:321)
at proguard.ProGuard.initialize(ProGuard.java:211)
at proguard.ProGuard.execute(ProGuard.java:86)
at proguard.ProGuard.main(ProGuard.java:492)
Here is my project.properties file:
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-18
android.library.reference.3=../ABCSourceCode/Libraries/ABCLibrary
android.library.reference.4=../ABCSourceCode/Libraries/AndroidHorizontalListView
android.library.reference.1=../ABCSourceCode/Libraries/ABS_Library
android.library.reference.2=../ABCSourceCode/Libraries/google-play-services_lib
android.library.reference.6=../ABCSourceCode/Libraries/volleyLibrary
android.library.reference.5=../ABCSourceCode/Libraries/SlidingMenuForklibrary
IN proguard config file, just skip all the above libs which are thrown in error by below mentioned way..
-keep class yourclassname.** { *; }
In your case it would be
-keep class javax.ws.rs.** { *; }
-dontwarn com.fasterxml.jackson.**
Try doing this and run build again.