CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
322 stars 233 forks source link

PermissionManager.java:321: error: cannot find symbol Build.VERSION_CODES.S in ar_flutter_plugin/example #47

Closed limcheekin closed 2 years ago

limcheekin commented 2 years ago

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_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)

Please advise. Thank you.

naveenbharadwaj19 commented 2 years ago

@limcheekin check #44 . Change compileSdkVersion to 31 permission_handler

limcheekin commented 2 years ago

It works! Thanks.