In my flutter project, when i Started Debugging then it returns an Exception message which is FAILURE: Build failed with an exception. See the below output of my Terminal.
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/11/FAILURE-Build-failed-with-an-exception-1024x367.png)
Solution
Just Delete your .gradle directory from android directory.
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/11/delete_gradle_folder.png)
The Error will resolve with this.
Thanks for reading.
Keep Coding.
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/11/Keep_coding.gif)
Latest posts by Sushant Kumar (see all)
- What is On-Page Optimization and Off-page Optimization - March 14, 2024
- [SOLVED] Flutter : PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) - December 7, 2021
- [Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown - December 6, 2021