Git Product home page Git Product logo

Comments (3)

mvanbeusekom avatar mvanbeusekom commented on July 29, 2024

@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 the example 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.

yathit avatar yathit commented on July 29, 2024

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.

mvanbeusekom avatar mvanbeusekom commented on July 29, 2024

@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:

from flutter-permission-handler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.