Backendless Version (5.0.4, Online)
Client SDK (Android).
IDE: Android Studio 2021.2.1 Patch 1
Application ID: B97A5053-3CE3-9ECA-FFE9-A664C68A2A00
Expected Behavior: DeviceRegistrationResult is part of Backendless API / successful build
Please describe the expected behavior of the issue, starting from the first action.
- Trying to finish the Push Commander mission
- Trying to successfully compile mobile Android app to complete mission
- Expecting to avoid build error surrounding missing DeviceRegistrationResult class (without having to force use of blocking code)
Actual Behavior
com.backendless.push.DeviceRegistrationResult cannot be imported.
The build process indicates an error:
Cannot find symbol class : DeviceRegistrationResult
C:\Users\cobusvanzyl.smit\AndroidStudioProjects\AuthorizerOne\app\src\main\java\com\bha\authorizerone\MainActivity.java:61: error: cannot find symbol
new AsyncCallback() {
^
symbol: class DeviceRegistrationResult
location: class MainActivity
Reproducible Test Case: unknown - seems class is missing. I have checked all dependencies.
Backendless.Messaging.registerDevice(channels,
new AsyncCallback<DeviceRegistrationResult>() {
@Override
public void handleResponse(DeviceRegistrationResult response) {
Toast.makeText( getApplicationContext(), "Device registered!",
Toast.LENGTH_LONG).show();
}
@Override
public void handleFault(BackendlessFault fault) {
Toast.makeText(getApplicationContext(), "Error registering " + fault.getMessage(), Toast.LENGTH_LONG).show();
}
});