Error Processing push notification java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/NotificationCompat$Builder

Hi

Off the bat I need to advise that I’m not a developer and have no coding experience, as a test, I manage to connect my Android project to Firebase/Backendless, following the documentation as well as a few video tutorials online, the device registration is successful, via emulator, however I seem to be getting the below error when trying to send the push notification from my Push Template in Backendless , please can you assist in resolving the issue, I tried searching online, but this seems to be an issue specific to Backendless, am I missing something?

E/BackendlessFCMService: Error processing push notification
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/NotificationCompat$Builder;
at com.backendless.push.PushTemplateHelper.convertFromTemplate(PushTemplateHelper.java:123)
at com.backendless.push.BackendlessFCMService.handleMessageWithTemplate(BackendlessFCMService.java:134)
at com.backendless.push.BackendlessFCMService.handleMessage(BackendlessFCMService.java:102)
at com.backendless.push.BackendlessFCMService.onMessageReceived(BackendlessFCMService.java:68)
at com.google.firebase.messaging.FirebaseMessagingService.dispatchMessage(FirebaseMessagingService.java:235)
at com.google.firebase.messaging.FirebaseMessagingService.passMessageIntentToSdk(FirebaseMessagingService.java:185)
at com.google.firebase.messaging.FirebaseMessagingService.handleMessageIntent(FirebaseMessagingService.java:172)
at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(FirebaseMessagingService.java:161)
at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$com-google-firebase-messaging-EnhancedIntentService(EnhancedIntentService.java:78)
at com.google.firebase.messaging.EnhancedIntentService$$ExternalSyntheticLambda1.run(Unknown Source:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run(com.google.android.gms:play-services-basement@@18.0.0:2)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “android.support.v4.app.NotificationCompat$Builder” on path: DexPathList[[zip file “/data/app/~~Y8EYQB4dvNF-krR02FE7lg==/com.bubble.trafficjam-WbyGls7ND_Y1WS5R3RkvjA==/base.apk”],nativeLibraryDirectories=[/data/app/~~Y8EYQB4dvNF-krR02FE7lg==/com.bubble.trafficjam-WbyGls7ND_Y1WS5R3RkvjA==/lib/x86_64, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.backendless.push.PushTemplateHelper.convertFromTemplate(PushTemplateHelper.java:123)
at com.backendless.push.BackendlessFCMService.handleMessageWithTemplate(BackendlessFCMService.java:134)
at com.backendless.push.BackendlessFCMService.handleMessage(BackendlessFCMService.java:102)
at com.backendless.push.BackendlessFCMService.onMessageReceived(BackendlessFCMService.java:68)
at com.google.firebase.messaging.FirebaseMessagingService.dispatchMessage(FirebaseMessagingService.java:235)
at com.google.firebase.messaging.FirebaseMessagingService.passMessageIntentToSdk(FirebaseMessagingService.java:185)
at com.google.firebase.messaging.FirebaseMessagingService.handleMessageIntent(FirebaseMessagingService.java:172)
at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(FirebaseMessagingService.java:161)
at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$com-google-firebase-messaging-EnhancedIntentService(EnhancedIntentService.java:78)
at com.google.firebase.messaging.EnhancedIntentService$$ExternalSyntheticLambda1.run(Unknown Source:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run(com.google.android.gms:play-services-basement@@18.0.0:2)
at java.lang.Thread.run(Thread.java:920)

Hi Ashwin,

By looking at the stack trace, it appears some classes/libraries were not added to the project.

To set your expectations, getting push notifications to work in an Android app would require some programming and particularly knowledge of configuring/building Android apps. I believe it would be a rather challenging task for a non-developer to get it working for you.

Regards,
Mark

The error isn’t connected to the Backendless directly.
It just says that your app can not find library with the android.support.v4.app.NotificationCompat class.