When I try to build the APK Following shows in the debug console. Build: Build Failed with an exception

dependency_overrides: flutter_svg: 0.18.0

in your pubspec.yaml


I had the exact same error like you did and the solution for me was to update my flutter_svg packages to its latest version. So I recommand you to go into your pubspec.yaml and do following under dependencies:

flutter_svg: 0.18.0

Then run pub get and hopefully the error should disappear.


To change dependency:

 flutter_svg: ^0.17.4  to flutter_svg: ^0.18.0

Then,

flutter pub get
flutter clean

Then, Run