Elbert Jn
Elbert Jn

Reputation: 195

Executoin faild for task ':app:processDebugResources'

I am using Android Studio as SDK Platforms and SDK Tools. Currently, I have a problem when running the android emulator using Visual Studio. I have checked flutter doctor and no issues has been found. However, it shows an error as below.

enter image description here

As i run flutter run --verbose to search for the problems, it shows more details of the error as below enter image description here

Upvotes: 2

Views: 91

Answers (3)

Elbert Jn
Elbert Jn

Reputation: 195

Just for sharing. Since I installed android studio, visual studio and flutter in my device using windows 11 pro, it doesn't work. However, I solved this problem by downgrading the Windows version into Windows 10 Home and it solved this particular problem. Anyone who face the same issue might try this in your current device.

Upvotes: 2

liam spiegel
liam spiegel

Reputation: 548

To solve your error you have to update your compileSDKversion to the newest version which is currently 31.

You can find the compileSDKversion inside android > app > build.gradle

android {

  compileSdkVersion 31

  ...

}

Note: you have to close and open android studio again

Upvotes: 0

Yakubu
Yakubu

Reputation: 1109

This look like gradle compatibility issue.

Step to solve.

  • create new flutter project. try to compile the prject, if it work fine. compare the android folder with yours and replace what is missing with the new flutter project you created.
  • sync your project after.
  • file/invalidateCache
  • flutter clean
  • flutter pub get
  • flutter run

you should be fine

Upvotes: 0

Related Questions