-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No virtual method areNotificationsEnabled()Z #42
Comments
Which Titanium SDK are you using? Because this errors shows that the V4 support library is missing, which comes standard with Titanium : https://github.com/appcelerator/titanium_mobile/tree/6_1_X/android/modules/appcompat/lib |
i am using Titanium Appcelerator SDK 6.1.2 |
yeap |
yes
…On 8 September 2017 at 20:10, Juan Carlos Salinas Ojeda < ***@***.***> wrote:
yeap
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAozA2taw51BAmjEj9gvqIF3tUQOom-Fks5sgZE5gaJpZM4PDref>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to implement this android notifications but i am getting this error.
Despite the error, I can get the token, but when sending the notification from the web portal, it never arrives.
[ERROR] : art: java.lang.NoSuchMethodError: No virtual method areNotificationsEnabled()Z in class Landroid/support/v4/app/NotificationManagerCompat; or its super classes
[ERROR] : art: ----- class 'Landroid/support/v4/app/NotificationManagerCompat;' cl=0x12cca140 -----
[ERROR] : art: objectSize=516 (440 from super)
[ERROR] : art: access=0x0008.0011
[ERROR] : art: super='java.lang.Class<java.lang.Object>' (cl=0x0)
[ERROR] : art: vtable (5 entries, 11 in super):
[ERROR] : art: 0: void android.support.v4.app.NotificationManagerCompat.cancel(int)
[ERROR] : art: 1: void android.support.v4.app.NotificationManagerCompat.cancel(java.lang.String, int)
[ERROR] : art: 2: void android.support.v4.app.NotificationManagerCompat.cancelAll()
[ERROR] : art: 3: void android.support.v4.app.NotificationManagerCompat.notify(int, android.app.Notification)
[ERROR] : art: 4: void android.support.v4.app.NotificationManagerCompat.notify(java.lang.String, int, android.app.Notification)
[ERROR] : art: direct methods (7 entries):
[ERROR] : art: 0: void android.support.v4.app.NotificationManagerCompat.()
[ERROR] : art: 1: void android.support.v4.app.NotificationManagerCompat.(android.content.Context)
[ERROR] : art: 2: int android.support.v4.app.NotificationManagerCompat.access$000()
[ERROR] : art: 3: android.support.v4.app.NotificationManagerCompat android.support.v4.app.NotificationManagerCompat.from(android.content.Context)
[ERROR] : art: 4: java.util.Set android.support.v4.app.NotificationManagerCompat.getEnabledListenerPackages(android.content.Context)
[ERROR] : art: 5: void android.support.v4.app.NotificationManagerCompat.pushSideChannelQueue(android.support.v4.app.NotificationManagerCompat$Task)
[ERROR] : art: 6: boolean android.support.v4.app.NotificationManagerCompat.useSideChannelForNotification(android.app.Notification)
[ERROR] : art: static fields (14 entries):
[ERROR] : art: 0: java.lang.String android.support.v4.app.NotificationManagerCompat.ACTION_BIND_SIDE_CHANNEL
[ERROR] : art: 1: java.lang.String android.support.v4.app.NotificationManagerCompat.EXTRA_USE_SIDE_CHANNEL
[ERROR] : art: 2: android.support.v4.app.NotificationManagerCompat$Impl android.support.v4.app.NotificationManagerCompat.IMPL
[ERROR] : art: 3: int android.support.v4.app.NotificationManagerCompat.MAX_SIDE_CHANNEL_SDK_VERSION
[ERROR] : art: 4: java.lang.String android.support.v4.app.NotificationManagerCompat.SETTING_ENABLED_NOTIFICATION_LISTENERS
[ERROR] : art: 5: int android.support.v4.app.NotificationManagerCompat.SIDE_CHANNEL_BIND_FLAGS
[ERROR] : art: 6: int android.support.v4.app.NotificationManagerCompat.SIDE_CHANNEL_RETRY_BASE_INTERVAL_MS
[ERROR] : art: 7: int android.support.v4.app.NotificationManagerCompat.SIDE_CHANNEL_RETRY_MAX_COUNT
[ERROR] : art: 8: java.lang.String android.support.v4.app.NotificationManagerCompat.TAG
[ERROR] : art: 9: java.util.Set android.support.v4.app.NotificationManagerCompat.sEnabledNotificationListenerPackages
[ERROR] : art: 10: java.lang.String android.support.v4.app.NotificationManagerCompat.sEnabledNotificationListeners
[ERROR] : art: 11: java.lang.Object android.support.v4.app.NotificationManagerCompat.sEnabledNotificationListenersLock
[ERROR] : art: 12: java.lang.Object android.support.v4.app.NotificationManagerCompat.sLock
[ERROR] : art: 13: android.support.v4.app.NotificationManagerCompat$SideChannelManager android.support.v4.app.NotificationManagerCompat.sSideChannelManager
[ERROR] : art: instance fields (2 entries):
[ERROR] : art: 0: android.content.Context android.support.v4.app.NotificationManagerCompat.mContext
[ERROR] : art: 1: android.app.NotificationManager android.support.v4.app.NotificationManagerCompat.mNotificationManager
[ERROR] : art:
[ERROR] : linker: readlink('') failed: No such file or directory [fd=39]
[ERROR] : linker: warning: unable to get realpath for the library "/system/lib/hw/gralloc.sc8830.so". Will use given name.
[INFO] : art: Background sticky concurrent mark sweep GC freed 2767(247KB) AllocSpace objects, 6(108KB) LOS objects, 0%% free, 15MB/15MB, paused 5.889ms total 332.916ms
[ERROR] : art: java.lang.NoSuchMethodError: No virtual method areNotificationsEnabled()Z in class Landroid/support/v4/app/NotificationManagerCompat; or its super classes
[ERROR] : art: ----- class 'Landroid/support/v4/app/NotificationManagerCompat;' cl=0x12cca140 -----
[ERROR] : art: objectSize=516 (440 from super)
[ERROR] : art: access=0x0008.0011
[ERROR] : art: super='java.lang.Class<java.lang.Object>' (cl=0x0)
[ERROR] : art: vtable (5 entries, 11 in super):
[ERROR] : art: 0: void android.support.v4.app.NotificationManagerCompat.cancel(int)
[ERROR] : art: 1: void android.support.v4.app.NotificationManagerCompat.cancel(java.lang.String, int)
[ERROR] : art: 2: void android.support.v4.app.NotificationManagerCompat.cancelAll()
[ERROR] : art: 3: void android.support.v4.app.NotificationManagerCompat.notify(int, android.app.Notification)
[ERROR] : art: 4: void android.support.v4.app.NotificationManagerCompat.notify(java.lang.String, int, android.app.Notification)
[ERROR] : art: direct methods (7 entries):
[ERROR] : art: 0: void android.support.v4.app.NotificationManagerCompat.()
[ERROR] : art: 1: void android.support.v4.app.NotificationManagerCompat.(android.content.Context)
[ERROR] : art: 2: int android.support.v4.app.NotificationManagerCompat.access$000()
[ERROR] : art: 3: android.support.v4.app.NotificationManagerCompat android.support.v4.app.NotificationManagerCompat.from(android.content.Context)
[ERROR] : art: 4: java.util.Set android.support.v4.app.NotificationManagerCompat.getEnabledListenerPackages(android.content.Context)
[ERROR] : art: 5: void android.support.v4.app.NotificationManagerCompat.pushSideChannelQueue(android.support.v4.app.NotificationManagerCompat$Task)
[ERROR] : art: 6: boolean android.support.v4.app.NotificationManagerCompat.useSideChannelForNotification(android.app.Notification)
[ERROR] : art: static fields (14 entries):
[ERROR] : art: 0: java.lang.String android.support.v4.app.NotificationManagerCompat.ACTION_BIND_SIDE_CHANNEL
[ERROR] : art: 1: java.lang.String android.support.v4.app.NotificationManagerCompat.EXTRA_USE_SIDE_CHANNEL
[ERROR] : art: 2: android.support.v4.app.NotificationManagerCompat$Impl android.support.v4.app.NotificationManagerCompat.IMPL
[ERROR] : art: 3: int android.support.v4.app.NotificationManagerCompat.MAX_SIDE_CHANNEL_SDK_VERSION
[ERROR] : art: 4: java.lang.String android.support.v4.app.NotificationManagerCompat.SETTING_ENABLED_NOTIFICATION_LISTENERS
[ERROR] : art: 5: int android.support.v4.app.NotificationManagerCompat.SIDE_CHANNEL_BIND_FLAGS
[ERROR] : art: 6: int android.support.v4.app.NotificationManagerCompat.SIDE_CHANNEL_RETRY_BASE_INTERVAL_MS
[ERROR] : art: 7: int android.support.v4.app.NotificationManagerCompat.SIDE_CHANNEL_RETRY_MAX_COUNT
[ERROR] : art: 8: java.lang.String android.support.v4.app.NotificationManagerCompat.TAG
[ERROR] : art: 9: java.util.Set android.support.v4.app.NotificationManagerCompat.sEnabledNotificationListenerPackages
[ERROR] : art: 10: java.lang.String android.support.v4.app.NotificationManagerCompat.sEnabledNotificationListeners
[ERROR] : art: 11: java.lang.Object android.support.v4.app.NotificationManagerCompat.sEnabledNotificationListenersLock
[ERROR] : art: 12: java.lang.Object android.support.v4.app.NotificationManagerCompat.sLock
[ERROR] : art: 13: android.support.v4.app.NotificationManagerCompat$SideChannelManager android.support.v4.app.NotificationManagerCompat.sSideChannelManager
[ERROR] : art: instance fields (2 entries):
[ERROR] : art: 0: android.content.Context android.support.v4.app.NotificationManagerCompat.mContext
[ERROR] : art: 1: android.app.NotificationManager android.support.v4.app.NotificationManagerCompat.mNotificationManager
[ERROR] : art:
The text was updated successfully, but these errors were encountered: