L
Size: a a a
L
SK
СП
L
AS
DG
I
if (Build.VERSION.SDK_INT >= VERSION_CODES.O) {
initNotificationCategories()
}
Происходит инициализация уведомлений.Caused by: java.lang.IllegalArgumentException: The observer class has some methods that use newer APIs which are not available in the current OS version. Lifecycles cannot access even other methods so you should make sure that your observer classes only access framework classes that are available in your min API level OR use lifecycle:compiler annotation processor.
at androidx.lifecycle.ClassesInfoCache.getDeclaredMethods(ClassesInfoCache.java:72)
at androidx.lifecycle.ClassesInfoCache.hasLifecycleMethods(ClassesInfoCache.java:50)
at androidx.lifecycle.Lifecycling.resolveObserverCallbackType(Lifecycling.java:164)
at androidx.lifecycle.Lifecycling.getObserverConstructorType(Lifecycling.java:146)
at androidx.lifecycle.Lifecycling.lifecycleEventObserver(Lifecycling.java:83)
at androidx.lifecycle.LifecycleRegistry$ObserverWithState.<init>(LifecycleRegistry.java:347)
at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:174)
at Application.onCreate(Application.kt:79)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1028)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5655)
... 8 more
Caused by: java.lang.NoClassDefFoundError: android.app.NotificationChannel
at libcore.reflect.InternalNames.getClass(InternalNames.java:55)
at java.lang.Class.getDexCacheType(Class.java:2551)
at java.lang.reflect.Method.getReturnType(Method.java:150)
at java.lang.Class.getDeclaredMethods(Class.java:1811)
at androidx.lifecycle.ClassesInfoCache.getDeclaredMethods(ClassesInfoCache.java:70)
... 17 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.app.NotificationChannel" on path:
I
СП
DB
СП
DG
DB
VP
DG
VP
Pㅤ
DB
СП