0

I'm building a flutter app and while I try to build an apk using flutter build apk, this error is being thrown enter image description here

I tried flutter clean and then flutter build apk but that didn't fix the problem either. After clearing gradle cache, this showed up.

enter image description here

Any solutions come to mind? Any help will be greatly appreciated.

Abin Gomez
  • 53
  • 7

2 Answers2

0

Probably a bad gradle cache. Did you run out of disk space at some point?

See this StackOverflow question on how to clear the gradle cache: How to clear gradle cache?

activout.se
  • 6,058
  • 4
  • 27
  • 37
  • No, there no issue with disk space. I already tried clearing the cache too. That's when the second error showed up. I've updated it in the original question. – Abin Gomez Jul 19 '22 at 18:24
  • "See compiler error output for details"... what is the full output from flutter build? By the way why are you not using flutter build appbundle? – activout.se Jul 19 '22 at 20:41
0

Checkout that your gradle plugin is compatible with your gradle version. https://developer.android.com/studio/releases/gradle-plugin#updating-gradle