flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

Execution failed for task ':permission_handler_android:extractReleaseAnnotations' on Windows

Open jseminck opened this issue 3 years ago • 6 comments

🐛 Bug Report

Since permission_handler was added to our project, I cannot run it on Windows anymore. I am getting the following error. If I remove the permission_handler dependency, then everything works.

We are using the latest version, and compileSdkVersion is set to 33 and ext.kotlin_version to 1.6.10

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':permission_handler_android:extractReleaseAnnotations'.
> A failure occurred while executing com.android.build.gradle.internal.lint.AndroidLintWorkAction
   > com/intellij/openapi/project/Project

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Failed to notify build listener.
> com/intellij/mock/MockProject

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Expected behavior

Build works

Reproduction steps

flutter build apk

Configuration

Version: latest

Platform:

  • [x] :robot: Android

jseminck avatar May 07 '23 05:05 jseminck

Same problem here since like 2 days ago when I updated my flutter version. Non release works fine but this is keeping me stuck. Did you ever find out what was the problem? My sdk and kotlin versions are the same as yours.

JaviGaiax avatar May 31 '23 09:05 JaviGaiax

Dear @jseminck or @JaviGaiax,

Can you paste an output of flutter doctor -v and can you confirm if this is also happening on the example app? It helps a lot when reproducing this issue. Can you also try to build with --stacktrace option. Maybe this gives a bit more context.

TimHoogstrate avatar Jun 29 '23 12:06 TimHoogstrate

@TimHoogstrate Hi,I am getting the same error. Here is the log i run with --stacktrace option:

AAPT2 process unexpectedly exit. Error output: aapt2 W 07-03 17:21:56 5826 5826 LoadedArsc.cpp:682] Unknown chunk type '200'. May it help?

JimmyGoGoGo avatar Jul 03 '23 09:07 JimmyGoGoGo

@JimmyGoGoGo, do you run into this issue in the example app too?

Kind regards,

TimHoogstrate avatar Jul 03 '23 11:07 TimHoogstrate

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.

github-actions[bot] avatar Aug 01 '23 08:08 github-actions[bot]

Same issue I am facing. What is the solution?

abkoradiya avatar Jan 26 '25 11:01 abkoradiya