Flutter_file_picker: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource linking failed /home/user/Desktop/Flutter/tasksigma/build/file_picker/intermediates/library_manifest/debug/AndroidManifest.xml:9:5-15:15: AAPT: error: unexpected element <queries> found in <manifest>.

Created on 10 Nov 2020  路  5Comments  路  Source: miguelpruivo/flutter_file_picker

This exception occurs every time and I can't build my project.
Flutter v1.22.1, channel: beta, IDE: VSCode

All 5 comments

@Nandan-Wewhare I'm sorry that you're experiencing this. But that's because you haven't yet migrated your gradle to fully support the new <queries> tag.

That information is both on CHANGELOG and Wiki.

Basically just replace your gradle version with: 4.0.1 for example and your gradle-wrapper.properties with:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

Thank you.

@miguelpruivo didn't solve the problem still it occurs.
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /home/user/Desktop/Flutter/tasksigma/build/file_picker/intermediates/library_manifest/debug/AndroidManifest.xml:9:5-15:15: AAPT: error: unexpected element <queries> found in <manifest>.


* 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

This is my gradle.wrapper.properties file:

#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

You need to update your build.gradle to a compatible version as well. Try 4.0.1.

It worked in debug mode, but I couldn't build an apk so I had to change one more thing in build.gradle--
added this---

lintOptions {
        disable 'InvalidPackage'
        checkReleaseBuilds false
    }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

hauketoenjes picture hauketoenjes  路  6Comments

JohnGalt1717 picture JohnGalt1717  路  5Comments

ened picture ened  路  7Comments

miguelpruivo picture miguelpruivo  路  7Comments

creativecreatorormaybenot picture creativecreatorormaybenot  路  6Comments