Execution failed for task app:desugarDebugFileDependencies - android

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.

Related

Execution failed for flutter

I am getting the following error:
Execution failed for task ':app:checkDebugAarMetadata'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > One or more issues found when checking AAR metadata values:

Error while running GitHub action android

GitHub action build failed with the below exception
> Task :app:spotlessKotlinCheck FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:spotlessKotlinCheck'.
The following files had format violations:
app/src/androidTest/java/com/example/androiddevchallenge/ExampleInstrumentedTest.kt
While I running this locally
./gradlew :app:spotlessKotlinCheck
It shows build success.
How to fix this?

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

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.

failed processing manifest. Execution failed for task ':app:processDebugResources'

When I build my project I got this error;
found.","sources":[{"file":"....\app\build\intermediates\manifests\full\debug\AndroidManifest.xml","position":{"startLine":146}}],"original":"","tool":"AAPT"}
error: failed processing manifest.
Task :app:processDebugResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Failed to process resources, see aapt output above for details.
I've been dealing with this error for a long time.Can you help me?
update the compileSdkVersion to 23 in the build.gradle file

Ionic cordova Execution failed for task ':transformClassesWithDexForDebug'

I am trying to build my ionic app and get the following error.
Error: /Applications/MAMP/htdocs/ionic/newBuild/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/app/NavUtils$NavUtilsImpl;
Does anyone know how to fix?
I found the issue to be the document viewer plugin I removed this and the support-v4.jar which this plugin depended on and is now fixed.

Categories

Resources