Reputation: 193
I am not able to generate signed APK, because of getting the following warning:
org.acra.ErrorReporter: can't find referenced method 'void setLatestEventInfo()' in library class android.app.Notification 2.there were 1 unresolved reference to library class members.3. Exception while processing task java.io.IOException: Please correct the above warnings first.
Upvotes: 1
Views: 250
Reputation: 758
As the error message indicates, android.support.v4.app.NotificationCompatBase refers to android.app.Notification # setLatestEventInfo. You can build against a later version of the Android runtime (one that does contain this method), or you can indeed suppress the warning:
-dontwarn android.support.v4.**
or
-dontwarn android.app.Notification
If this doesn't seem to work, you should double-check that the configuration file is read (e.g. by adding a bogus option).
Upvotes: 1