Execution failed for task ':app:compressDebugAssets'

9,394

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

Share:
9,394
Abdelrahman Tareq
Author by

Abdelrahman Tareq

Updated on December 26, 2022

Comments

  • Abdelrahman Tareq
    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
    Divyanshu Kumar over 2 years
    I 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!