Comments (2)
Hi @ksyeoh,
Thank you for submitting this issue. Unfortunately I cannot reproduce the error and we have not done any recent upgrades ourselves. Version 11.3.1 was released 49 days ago.
The PermissionStatusGetters
and PermissionCheckShortcuts
have been added to the code base 4 years ago and are both extensions on different enums. The PermissionStatusGetters
are an extension on the PermissionStatus
enum, while the PermissionCheckShortcuts
extend the Permission
enum:
See definitions here:
Possibly Android Studio is confused some how, could you try the following:
- Remove all the
permission_handler
related packages from the local cache. - Run
flutter clean
in the root of your project. - Invalidates caches in Android Studio:
- Open Android Studio
- Select "File" from the top menu
- Select "Invalidate caches..."
As mentioned I have tried to reproduce the error using the "Example" application with my copy of Android Studio and experienced no problem. The application compiled and ran without any problems on my Android Pixel 7a device. Here are some details on my environment:
Android Studio Iguana | 2023.2.1
Build #AI-232.10227.8.2321.11479570, built on February 21, 2024
Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
Dart (232.10313)
google-java-format (1.22.0.0)
io.flutter (79.0.1)
Output of flutter doctor -v
command:
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale en-US)
• Flutter version 3.22.0 on channel stable at /Users/maurits/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5dcb86f68f (7 days ago), 2024-05-09 07:39:20 -0500
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/maurits/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.89.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.88.0
[✓] Connected device (5 available)
• Pixel 7a (mobile) • 31071JEHN18081 • android-arm64 • Android 14 (API 34)
• Maurits van Beusekom’s iPhone (mobile) • 00008101-000D543E1A40001E • ios • iOS 17.4.1 21E236
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.4.1 23E224 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.60
[✓] Network resources
• All expected network resources are available.
• No issues found!
from flutter-permission-handler.
Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.
from flutter-permission-handler.
Related Issues (20)
- Permission.backgroundRefresh.status not available anymore HOT 1
- /usr/include/c++/11/cmath:45:15: fatal error: math.h: No such file or directory *** 45 | #include_next <math.h> *** | ^~~~~~~~ *** compilation terminated. HOT 2
- [Bug]: Permission handler doesn't work on Android 14 HOT 1
- [Bug]: iOS GCC_PREPROCESSOR_DEFINITIONS 设置问题 HOT 1
- [Bug]: The existing windows implementation does not work in Windows 7 HOT 1
- [Feature request]: Detect when a user give a permission just for once HOT 2
- [Regression]: iOS now requires to obtain "When in use" location permission before requesting "Always" location permission
- [Question]: iOS `photosAddOnly` and `photo` always return `permanentlyDenied`, without dialog or app settings entry HOT 2
- [Question]: why set calendar Deprecated ? Forces me to use calendarFullAccess? HOT 1
- [Bug]:Permission.isDenied always return true. HOT 2
- [Question]: How to release or close camera after take photo in web flutter app ? HOT 1
- [Question]: add Android 14 permission READ_MEDIA_VISUAL_USER_SELECTED support HOT 2
- [Question]: Is POST_NOTIFICATIONS permission missing? HOT 5
- [Question]: How do we access the READ_PHONE_NUMBERS permission HOT 1
- [Bug]: Bluetooth permission on iOS permanently denied HOT 8
- [Question]: FormatException: Missing extension byte (at offset 1) HOT 4
- Remove references to deprecated v1 Android embedding HOT 1
- Kotlin version of package HOT 2
- [Feature request]: Implement full screen intent android permission request HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-permission-handler.