I'm building a flutter app and while I try to build an apk using flutter build apk
, this error is being thrown
I tried flutter clean
and then flutter build apk
but that didn't fix the problem either.
After clearing gradle cache, this showed up.
Any solutions come to mind? Any help will be greatly appreciated.
CodePudding user response:
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?
CodePudding user response:
Checkout that your gradle plugin is compatible with your gradle version. https://developer.android.com/studio/releases/gradle-plugin#updating-gradle