Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve project :permission_handler. #40

Closed
1 task
OMP1024 opened this issue Nov 7, 2018 · 3 comments
Closed
1 task

Could not resolve project :permission_handler. #40

OMP1024 opened this issue Nov 7, 2018 · 3 comments
Assignees

Comments

@OMP1024
Copy link

OMP1024 commented Nov 7, 2018

🐛 Bug Report

image

Expected behavior

Reproduction steps

Configuration

Version: ^2.1.0

Platform:

  • 🤖 Android
@mvanbeusekom
Copy link
Member

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

@mvanbeusekom mvanbeusekom self-assigned this Nov 7, 2018
@yathit
Copy link

yathit commented Nov 8, 2018

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)

@mvanbeusekom
Copy link
Member

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

@mvanbeusekom mvanbeusekom mentioned this issue Apr 27, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants