Firebase Key Unable to upload for PushCommander

Application ID: F87525B4-0421-9C3E-FF82-DD075009EF00
Error UID: CED41125-B8DB-322C-FF47-F7FA3D3B0D00

Backendless encountered an error while handling the request. An internal trouble ticket with ID bl-server:CED41125-B8DB-322C-FF47-F7FA3D3B0D00 has been created and we will be investigating the issue.
Unrecognized token 'Tej0hnlIqccGZAJa2T92oUSqk_5Nyb9edktJa8hejS0': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (byte[])"Tej0hnlIqccGZAJa2T92oUSqk_5Nyb9edktJa8hejS0"; line: 1, column: 44]
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Tej0hnlIqccGZAJa2T92oUSqk_5Nyb9edktJa8hejS0': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (byte[])"Tej0hnlIqccGZAJa2T92oUSqk_5Nyb9edktJa8hejS0"; line: 1, column: 44]
	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2418)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:759)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidToken(UTF8StreamJsonParser.java:3693)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2781)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:907)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:793)
	at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose(ObjectMapper.java:4759)
	at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:3138)
	at controllers.console.settings.mobile.ManageAndroidMobileSettingsController.createPrivateKey(ManageAndroidMobileSettingsController.java:190)
	at controllers.console.settings.mobile.ManageAndroidMobileSettingsController.lambda$create$1(ManageAndroidMobileSettingsController.java:142)
	at com.backendless.async.BackendlessExecutorService.lambda$submit$0(BackendlessExecutorService.java:84)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

Problem description

Describe what you did in console that led to the error. Please provide a description of what actually happens. Be descriptive: “it doesn’t work” does not describe what the behavior actually is. This will help us with reproducing the problem.

Steps to reproduce

Please describe steps to reproduce starting from the first action.

Hello @Alejandro_Tamonan

Please write the steps to reproduce the problem. Are you following these instructions when setting up push notifications? Push Notification Setup (Android) - Backendless SDK for Android/Java API Documentation

Regards,
Inna

Unable to resolve this error in Android Studio Manifest.

Have this in the App/build.gradle

Hello @Alejandro_Tamonan

This error occurs when you try to add Service Account Private Keys (Manage-App Settings-MOBILE-ANDROID) right? If so, it’s because you’re trying to add a key file in the wrong format.

in your build.gradle:
add
implementation group: 'com.backendless', name: 'android-client-sdk', version: '7.0.7'

Regards,
Vladimir

Deleted project again and again changing language kotlin to java , restarting over using latest updates (Android SDK version 34)…

and have this in build.gradle(App) as suggested (also tried earlier Backendless version 7.0.4)

But same error in AndroidManifest.xml

There must be a plugin or something that Backendless is not recognized in my Android Studio app. I’ve been through all the documentation Backendless and Firebase…

Hello @Alejandro_Tamonan

In your build.gradle:
implementation( “com.backendless”, “backendless”, “7.0.7”)
i’m talking about:
implementation( “com.backendless”, “android-client-sdk”, “7.0.7”)

Regards,
Vladimir

Hi Vlad,

Thanks for your cooperation and patience.

In AndroidManifest is still same and same unresolved class error"not found in the libraries.


Hi Vlad,

Just wanted to share my experience. Made it through and this are the updates needed in the Gradle.kts (App) and Manifest. Got to it by a painful trial and error, but was really worth it. Helped the learning curve so much.

Have posted this in the mission discussion to assist would be learners.
image

Alex