Execution failed for task ':app:compressDebugAssets'
Solution 1
I found a temporary solution in downgrading my Android Studio version to 4.0.2. Additionally, I changed the Android Gradle plugin version to 4.0.2 and the Gradle version to 6.1.1 which I had installed before. You can do this under File -> Project Structure -> Project.
Solution 2
For me what did the job was
./gradlew clean
Solution 3
In my case, I was able to solve the problem in AndoidStudio as follows: Tools -> Flutter -> Flutter Clean
Solution 4
deleted .gradle .idea
having your project in this folder the original of the program AndroidStudioProjects
open Project File > Invalidate Caches /Resetart..
Android studio will restart File > Sync Projet With Gradle Files
end..
my current project Android Gradle Pluglin version 4.3.3 Gradle version 6.7.1
Abdelrahman Tareq
Updated on December 26, 2022Comments
-
Abdelrahman Tareq over 1 year
Execution failed:
task ':app:compressDebugAssets'.> A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction > \app\build\intermediates\merged_assets\debug\out
-
Divyanshu Kumar over 2 yearsI did not changed any plugin or gradle version it is by default 7+ version for gradle. tried all the steps above and worked for me after 2 days struggle!