Execution failed for task app processDebugResources on flutterlocalnotification

0 votes

I am trying to implement flutterlocalnotification in my app but unfortunately its raising an error

Launching lib\main.dart on Infinix X688B in debug mode...

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.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource linking failed C:\Users\Vincent\Desktop\PPlanner\myplanner\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml:17: error: unexpected element found in .

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

BUILD FAILED in 27s Running Gradle task 'assembleDebug'... 28.7s Exception: Gradle task assembleDebug failed with exit code 1

Apr 3, 2023 in Flutter by sarit
• 1,830 points
5,853 views

1 answer to this question.

0 votes

The error message suggests that there is a problem with the Android resource linking for your app, specifically with the AndroidManifest.xml file.

Here are a few steps you can try to resolve this issue:

  1. Check your AndroidManifest.xml file: Make sure that there are no syntax errors or unexpected elements in the file. Check the file for any typos or errors, and make sure that all the elements are properly closed.

  2. Clean the project: Run the flutter clean command in your terminal to delete any build artifacts and start fresh. Then try to run your app again.

  3. Check your Gradle version: Make sure that you have the latest version of Gradle installed. You can check the version of Gradle in your build.gradle file, and download the latest version from the Gradle website.

  4. Upgrade the flutter_local_notifications package: Check if there is a newer version of the flutter_local_notifications package available and try upgrading to it. Sometimes, package updates can fix issues with compatibility or resource linking.

  5. Disable AAPT2: Try disabling the AAPT2 resource linker in your gradle.properties file by adding the following line: android.enableAapt2=false. Then try running your app again.

If none of these steps work, try running the flutter doctor command in your terminal to check for any issues with your Flutter installation. Also, make sure that you have the latest version of the Flutter SDK installed.

answered Apr 3, 2023 by vinayak

Related Questions In Flutter

0 votes
1 answer

How can I change the app display name build with Flutter?

Yes, you can change the app display ...READ MORE

answered Mar 21, 2023 in Flutter by venky
2,625 views
0 votes
1 answer

How to dismiss an AlertDialog on a FlatButton click?

To dismiss the AlertDialog when the FlatButton ...READ MORE

answered Mar 26, 2023 in Flutter by pooja
2,821 views
0 votes
1 answer

How to make flutter app responsive according to different screen size?

To make your Flutter app responsive according ...READ MORE

answered Mar 27, 2023 in Flutter by anonymous
7,326 views
0 votes
1 answer

How to get build and version number of Flutter app?

You can get the build and version ...READ MORE

answered Mar 29, 2023 in Flutter by pooja
1,284 views
0 votes
1 answer

I am creating mobile application on flutter but facing error of tflite library

The error you're encountering means that there ...READ MORE

answered Mar 18, 2023 in Android by pooja
980 views
0 votes
1 answer

How to change flutter project name and id?

Yes, it is possible to change the ...READ MORE

answered Mar 20, 2023 in Flutter by pooja
4,998 views
0 votes
1 answer
0 votes
1 answer

Dart_LoadScriptFromKernel: The binary program does not contain 'main'.

Hi@akhtar, You need to add the main() function ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,460 points
3,591 views
0 votes
1 answer

flutter app not running on ios simulator after adding firebase notification

The error message you provided seems to ...READ MORE

answered Apr 10, 2023 in Flutter by vishalini
5,317 views
0 votes
1 answer

Run method on Widget build complete

You can use the WidgetsBindingObserver to be ...READ MORE

answered Mar 24, 2023 in Flutter by vijitha
1,463 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP