Comments (3)
@OMP1024 I need more information to help you with this issue. I can't reproduce the problem you are facing with the little information you provided. Here is what I did:
-
First of I cloned the current version of the
permission_handler
project and executed theexample
project. This works fine. -
Second I created a new Flutter App (using Android Studio) and added the
permission_handler
plugin and made sure I request some permissions (in my case I requested permissions to access the calendar). Also this worked fine out of the box.
Here is my environment:
[✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.14 18A391, locale en-NL)
• Flutter version 0.10.2 at /Users/maurits/Developer/flutter
• Framework revision d8cbb80206 (12 days ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/maurits/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/maurits/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.3911.37
[✓] VS Code (version 1.28.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.20.0
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
from flutter-permission-handler.
Has same issue:
* Error running Gradle:
ProcessException: Process "/home/k/xwork/k/android/gradlew" exited abnormally:
WARNING: The specified Android SDK Build Tools version (25.0.3) is ignored, as it is below the minimum supported version (27.0.3)
for Android Gradle Plugin 3.1.2.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.3'" from your build.gradle file, as each version of the Android Gradle
Plugin now has a default version of the build tools.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':permission_handler'.
> Failed to notify project evaluation listener.
> java.lang.AbstractMethodError (no error message)
Example work fine:
flutter doctor -v
[✓] Flutter (Channel beta, v0.10.2, on Linux, locale en_US.UTF-8)
• Flutter version 0.10.2 at /home/k/flutter
• Framework revision d8cbb80206 (13 days ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/k/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /usr/lib/jvm/java-8-oracle/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
• All Android licenses accepted.
[✓] Android Studio (version 3.2)
• Android Studio at /home/k/opt/android-studio-3
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1136-b06)
[!] Android Studio
• Android Studio at /home/k/opt/android-studio/bin/studio.sh
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ android-studio-dir = /home/k/opt/android-studio/bin/studio.sh
✗ Android Studio not found at /home/k/opt/android-studio/bin/studio.sh
• Try updating or re-installing Android Studio.
• Consider removing your android-studio-dir setting by running:
flutter config --android-studio-dir=
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at /home/k/opt/idea-IU-181.4668.68
• Flutter plugin version 30.0.2
• Dart plugin version 182.4999
[✓] VS Code (version 1.27.2)
• VS Code at /usr/share/code
• Flutter extension version 2.12.2
[✓] Connected device (2 available)
• A7Pro • 0123456789ABCDEF • android-arm64 • Android 7.0
(API 24)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android P
(API 27) (emulator)
! Doctor found issues in 1 category.
For the app
flutter doctor -v
[✓] Flutter (Channel beta, v0.10.2, on Linux, locale en_US.UTF-8)
• Flutter version 0.10.2 at /home/k/flutter
• Framework revision d8cbb80206 (13 days ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/k/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /usr/lib/jvm/java-8-oracle/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
• All Android licenses accepted.
[✓] Android Studio (version 3.2)
• Android Studio at /home/k/opt/android-studio-3
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[!] Android Studio
• Android Studio at /home/k/opt/android-studio/bin/studio.sh
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ android-studio-dir = /home/k/opt/android-studio/bin/studio.sh
✗ Android Studio not found at /home/k/opt/android-studio/bin/studio.sh
• Try updating or re-installing Android Studio.
• Consider removing your android-studio-dir setting by running:
flutter config --android-studio-dir=
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at /home/k/opt/idea-IU-181.4668.68
• Flutter plugin version 30.0.2
• Dart plugin version 182.4999
[✓] VS Code (version 1.27.2)
• VS Code at /usr/share/code
• Flutter extension version 2.12.2
[✓] Connected device (2 available)
• A7Pro • 0123456789ABCDEF • android-arm64 • Android 7.0 (API 24)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android P (API 27) (emulator)
from flutter-permission-handler.
@yathit thank you for the additional information. This error is most likely caused by an outdated version of Gradle. Please update your Gradle dependencies using the following instructions:
- flutter/flutter#22614
- Or copy the changes in this PR to your own project
from flutter-permission-handler.
Related Issues (20)
- [Question]: Add iOS privacy manifests HOT 4
- [Question]: Why AppLifeCycleListener method called repeatedly HOT 1
- [Enhancement proposal]: Add wasm support HOT 2
- [Question]:I'm facing Permission.PermentlyDenied issue even after requesting or manually giving the permission to app i'm not able to access files in external storage in android 13 whereas I don't face thise issue in android 11 or below HOT 1
- [Question]:I'm facing Permission.PermentlyDenied issue even after requesting or manually giving the permission to app i'm not able to access files in external storage in android 13 whereas I don't face thise issue in android 11 or below HOT 1
- [Bug]: CalendarFullAccess status is always denied in iOS 17+ HOT 5
- [Feature request]: manageExternalStorage in iOS HOT 1
- [Bug]: Firefox: TypeError: 'camera' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName HOT 2
- [Bug]: Gets Permission Granted Status for Limited Permission HOT 5
- [Bug]: Turning on and turning off external storage causes app crash. HOT 4
- [Bug]: Permission.camera.request() throwing permission denied even if I have granted. HOT 9
- [Question]: Failed to initialize decoder: c2.unisoc.avc.decoder HOT 1
- [Question]: ITMS-91053: Missing API declaration HOT 1
- [Bug]: Camera status is always denied in iOS 17 HOT 8
- 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
- [Question]: isGranted getter method conflict HOT 2
- [Bug]: iOS GCC_PREPROCESSOR_DEFINITIONS 设置问题 HOT 1
- [Bug]: The existing windows implementation does not work in Windows 7 HOT 1
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.