Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter : Several variant outputs are configured to use the same file name

I am just trying to run the first app and this is what happens:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> Several variant outputs are configured to use the same file name "resources-debug.ap_", filters : MAIN:MAIN
like image 766
Vivek E Avatar asked Jan 18 '20 17:01

Vivek E


2 Answers

Please try flutter clean and rebuild.

like image 70
Manoj PT Avatar answered Oct 19 '22 17:10

Manoj PT


I got the same error while trying to integrate FCM into my application.. The problem is in the older build file.. i.e as we are editing our Manifest file we need to rebuild the project so..

flutter clean
flutter run 

Make sure to do gradle sync if the problem persist.. It solved the problem for me..

like image 43
Abhijeet Dash Avatar answered Oct 19 '22 17:10

Abhijeet Dash