Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction

I am getting this while trying to run build 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
   > java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

I already ran flutter clean then flutter pub get before launching the app again. It still not going! The flutter doctor command result is OK and fine too

like image 402
Baimam Boukar Jean Jacques Avatar asked Jun 06 '26 15:06

Baimam Boukar Jean Jacques


1 Answers

Try this solution by adding this line to gradle.properties.

org.gradle.jvmargs=-Xmx4608m
like image 130
Nikunj Ramani Avatar answered Jun 08 '26 06:06

Nikunj Ramani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!