Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Fix crash on notification #154

Closed
tiwiz opened this issue Mar 21, 2017 · 0 comments
Closed

Fix crash on notification #154

tiwiz opened this issue Mar 21, 2017 · 0 comments
Assignees
Labels

Comments

@tiwiz
Copy link
Contributor

tiwiz commented Mar 21, 2017

With API < 23, the notification crashes with this logacat

FATAL EXCEPTION: main
Process: it.droidconit.dummiladisciassette, PID: 8283
java.lang.NoSuchMethodError: No virtual method getColor(ILandroid/content/res/Resources$Theme;)I in class Landroid/content/res/Resources; or its super classes (declaration of 'android.content.res.Resources' appears in /system/framework/framework.jar)
at net.squanchy.notification.NotificationCreator.createDefaultBuilder(NotificationCreator.java:97)
at net.squanchy.notification.NotificationCreator.createFrom(NotificationCreator.java:50)
at net.squanchy.notification.NotificationCreator.createFrom(NotificationCreator.java:41)
at net.squanchy.DebugActivity.createAndNotifyTalksCount(DebugActivity.java:62)
at net.squanchy.DebugActivity.testSingleNotification(DebugActivity.java:50)
at net.squanchy.DebugActivity.lambda$onCreate$0(DebugActivity.java:38)
at net.squanchy.DebugActivity$$Lambda$1.onClick(Unknown Source)
at android.view.View.performClick(View.java:4785)
at android.view.View$PerformClick.run(View.java:19858)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
@tiwiz tiwiz self-assigned this Mar 21, 2017
@rock3r rock3r added the bug label Mar 22, 2017
@rock3r rock3r closed this as completed Mar 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants