robospice icon indicating copy to clipboard operation
robospice copied to clipboard

ProGuard warning: can't find referenced method setLatestEventInfo

Open mgramenitskiy opened this issue 9 years ago • 2 comments

The (previously deprecated) Notification method setLatestEventInfo was completely removed in API level 23 (Android 6.0, Marshmallow). ProGuard says: Warning:com.octo.android.robospice.SpiceService: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification

mgramenitskiy avatar Sep 17 '15 09:09 mgramenitskiy

Add this in your proguard-rules.pro file:

-dontwarn com.octo.android.robospice.SpiceService

It's not ideal, but the missing method is only used when VERSION.SDK_INT < 11, so for most people it's safe to ignore.

wiradikusuma avatar Oct 04 '15 04:10 wiradikusuma

Thanks for the workaround. Could we also get a new release with a fix for this? Or at the very least, a notice in the readme file for future reference.

bogdanzurac avatar Oct 14 '15 09:10 bogdanzurac