0

I'm encountering the following problem when sending an API request on my Android 10 device. The response to the request I sent to the API returns as follows:

enter image description here

Actually, I am facing a crash issue directly on the application login screen without sending an API request. My other API service classes are as follows: enter image description here

enter image description here

When I tested on a version 13 Android phone, I did not encounter any crashes. This is the crash message:
enter image description here

Thank you very much in advance :)

2
  • Please try to debug your app or temporarily set up logging to find out what data your app is actually receiving. For example, maybe it doesn't receive JSON but an HTML error page. Commented May 12, 2024 at 21:06
  • Unrelated to this, but you should probably use a JSON library to create the JSON string in LoggBeeAPIService#login instead of creating it by hand. Otherwise if users have for example " in their password, it will break the JSON string and they are unable to log in. Commented May 12, 2024 at 21:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.