Execution failed for task ‘:app:processDebugResources’ Android studio flutter project

  android, android-emulator, dart, flutter, gradle

Hello I need help with following error please. Thank you very much!
I’m getting the following error when trying to flutter run for my project.

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
C:UsersJoinUser10DesktopTravelling flutter AndrodtravellingandroidAndrodtravellingandroidappsrcmainAndroidManifest.xml:5:4-45:19: AAPT: error: resource xml/network_securi
ty_config (aka com.example.travelling:xml/network_security_config) not found.

 C:UsersJoinUser10DesktopTravelling flutter AndrodtravellingandroidAndrodtravellingandroidappsrcmainAndroidManifest.xml:43:14-44:63: AAPT: error: resource xml/network_security_config (aka com.example.travelling:xml/network_security_config) not found.
  • 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

BUILD FAILED in 5s
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 6,7s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin flutter_plugin_android_lifecycle…
Running Gradle task ‘assembleAarRelease’…
Running Gradle task ‘assembleAarRelease’… Done 2.462ms

FAILURE: Build failed with an exception.

  • What went wrong:
    Task ‘assembleAarRelease’ not found in root project ‘flutter_plugin_android_lifecycle’.

  • Try:
    Run gradlew tasks to get a list of available tasks. 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

BUILD FAILED in 2s

Exception: The plugin flutter_plugin_android_lifecycle could not be built due to the issue above.

Source: Android Questions

LEAVE A COMMENT