Android Studio - fail to build "Execution failed for task ':app:mergeDebugResources'." - flutter

I'm new with Android Studio, and I'm just trying to run the sample code automatically generated for a Flutter project, but I'm having issues while trying to run the build. Here is the error I get on the console:
Launching lib/main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugResources'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #1: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #0: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #4: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #7: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #6: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #2: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #5: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-3.5.0-5435860-osx Daemon #3: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
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 9s
Finished with error: Gradle task assembleDebug failed with exit code 1

The problem is one of the plugins. Delete one and run again

Related

Execution failed for task ':app:signReleaseBundle'. / buildTypes cant release

Execution failed for task ':app:signReleaseBundle'.
A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
java.lang.NullPointerException (no error message)
honestly i tried everything :)

Execution failed for task ':app:signReleaseBundle'

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Failed to read key locii from store "E:\Flutter-App\android\app\locii.jks": No key with alias 'locii' found in keysto
re E:\Flutter-App\android\app\locii.jks
BUILD FAILED in 1m 46s
Running Gradle task 'bundleRelease'... 107.7s
Gradle task bundleRelease failed with exit code 1
Your jks file not found in the path just check where you the jks file provide the correct path

Error: Execution failed for task ':app:signReleaseBundle'

I have problem I did all step to create keystores and how can I fix this error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Failed to read key keystore01 from store "c:\Users\saydo\AndroidKeys\keystore01.jks": No key with alias 'keystore01' found in keystore c:\Users\saydo\AndroidKeys\keystore01.jks
* 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 11s
Running Gradle task 'bundleRelease'... 12.6s
Gradle task bundleRelease failed with exit code 1

What can be possible solution for " Execution failed for task ':app:mergeDebugJavaResource'. " while running flutter app

Execution failed for task ':app:mergeDebugJavaResource'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
File 'com.android.builder.files.ZipCentralDirectory#15d7a122' was deleted, but previous version not found in cache

Flutter not run

I am having problems with initializing the flutter project and running it for the first time and it does not work and shows the following error message. Hope someone helped me. Thanks everyone
Flutter 1.0
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
* 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 2s
Finished with error: Gradle task assembleDebug failed with exit code 1