Perhaps it is happened to me only, I'm facing the following error while running the example with flutter run on an Android 7 mobile phone:
permission_handler-8.2.5/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java:321: error: cannot find symbol
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
^
symbol: variable S
location: class VERSION_CODES
My environment:
[✓] Flutter (Channel stable, 2.5.3, on Ubuntu 20.04.3 LTS 5.4.0-89-generic,
locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version
31.0.0-rc2)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] VS Code (version 1.61.2)
[✓] Connected device (2 available)
Hi there,
Perhaps it is happened to me only, I'm facing the following error while running the example with
flutter run
on an Android 7 mobile phone: permission_handler-8.2.5/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java:321: error: cannot find symbol if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) { ^ symbol: variable S location: class VERSION_CODESMy environment: [✓] Flutter (Channel stable, 2.5.3, on Ubuntu 20.04.3 LTS 5.4.0-89-generic, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc2) [✓] Chrome - develop for the web [✓] Android Studio [✓] VS Code (version 1.61.2) [✓] Connected device (2 available)
Please advise. Thank you.