problem while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade - android

I am building my project on android studio 4. I end up getting this error
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
i tried to check out other people with a similar problem. And for their case the solution was to add org.gradle.jvmargs=-Xmx4608m but i already have org.gradle.jvmargs=-Xmx1536m
Here is my error log stack sample
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> java.lang.IllegalArgumentException (no error message)
I am really not sure where the problem is, and the gradle version i use is 6.1.1 and even when i try to change the version, i still get the same error
Thanks in advance

Looking for the same thing....
Execution failed for task ':app:processReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
/home/circleci/code/app/src/main/res/layout/fragment_local.xml:374: AAPT: error: attribute anim_scale_factor (aka es.fiestasgranada.main:anim_scale_factor) not found.

Related

Execution failed for task app:desugarDebugFileDependencies

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Error while dexing.
I think there is a conflict when upgrading to the new desugar version (V2.0.0 in my case). I just deleted all the desugar folders in:
..\ProjectFolder\app\build\intermediates
The app then built properly.

Still I'm getting error even after restart and adding the line to gradle Properties file

**> Task :app:mergeDebugResources FAILED
Execution failed for task ':app:mergeDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
Resource compilation failed. Check logs for details.**
//This is the error can anyone solve this error.

Execution failed for task ':launcher:bundleReleaseResources'

After adding Admob in Unity, the following error appeared:
What went wrong:
Execution failed for task ':launcher:bundleReleaseResources'.
1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Please suggest the possible solution for this error.

Getting Task :react-native-custom-keyboard-kit:verifyReleaseResources FAILED when building app

I am trying to create a simple app with Custom Keyboard. So I used react-native-custom-keyboard-kit npm package. It has no error when the app running on debugging mode. But when I tried to build app, it occured error as below:
Task :react-native-custom-keyboard-kit:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-custom-keyboard-kit:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
/home/bipulroy/.gradle/caches/transforms-2/files-2.1/a4aa75ad6ccbe3ab81ae94031ca63766/appcompat-1.0.2/res/values-v26/values-v26.xml:5:5-8:13: AAPT: error: resource android:attr/colorError not found.
Have you linked the library natively?
Try this:
react-native link react-native-custom-keyboard-kit

How to solve Flutter app build fail (Execution failed for task ':app:mergeDebugResources'.)?

Launching lib\main.dart on sdk gphone x86 in debug mode...
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
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: AAPT: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-hi\values-hi.xml: AAPT: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-de\values-de.xml: AAPT: error: file failed to compile.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
C:\Users\ASUS\Documents\bookingapp\Fook\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-lo\values-lo.xml: AAPT: error: file failed to compile.
finally found the problem it was my antivirus that was restricting AAPT to execute and make change in protected folder
Disable File Safeguard
Allow AAPT to Execute
Try a clean build:
flutter clean
Then try running on another device:
flutter run -d DeviceName --release
If you do not need to debug, but you still need logs then a release configuration or a profile config should work for you --profile

Categories

Resources