I am facing a specific issue while attempting to run my Flutter application with the latest version of ThingsBoard PE (1.0.7) on Android devices with API 21 to 30. The application is not loading dashboards correctly, although it works fine on APIs 31 and 33.
Problem Details:
build.gradle Configuration:
...
android {
compileSdkVersion 33
defaultConfig {
applicationId "org.thingsboard.pe.app"
minSdkVersion 24
targetSdkVersion 33
...
}
}
...
Changes made to the app before discovering the bug:
Attempts made:
I appreciate the community's assistance in finding a solution to this specific problem of dashboard loading issues on Android devices with API 21 to 30, using ThingsBoard PE version 1.0.7 and the Flutter application.
I was able to resolve this bug by removing the comments for these packages in the pubspeck.yaml
file:
flutter_downloader: ^1.6.0
permission_handler: ^8.0.0+2
path_provider: ^2.0.2
I also changed the version of the material icons package
material_design_icons_flutter: ^5.0.5955-rc.1
to material_design_icons_flutter: ^7.0.7296
Furthermore, I carried out tests on real devices and it worked as expected, only in the Android Studio
emulator some errors occurred.