由于收到以下警告,我无法生成签名的 APK:
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.
最佳答案
如错误消息所示,android.support.v4.app.NotificationCompatBase 指的是 android.app.Notification #setLatestEventInfo。您可以针对较新版本的 Android 运行时(包含此方法的版本)进行构建,或者您确实可以取消警告:
-dontwarn android.support.v4.**
或
-dontwarn android.app.Notification
如果这似乎不起作用,您应该仔细检查配置文件是否已读取(例如,通过添加虚假选项)。
关于java - 生成签名 APK 时收到警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53629726/