I want add image to my flutter project but is not connect . the erroe is in pubsec.yaml , file exist in file exists at correct location location (-assets/image/logo2.png) but told me the file do not exist ;
THIS IS THE ERROR
Error detected in pubspec.yaml:
No file or variants found for asset: assets/image/logo2.png.
FAILURE: Build failed with an exception.
-
Where:
Script ‘C:\flutter_windows_3.3.5-stable\flutter\packages\flutter_tools\gradle\flutter.gradle’ line: 1159 -
What went wrong:
Execution failed for task ‘:app:compileFlutterBuildDebug’.
Process ‘command ‘C:\flutter_windows_3.3.5-stable\flutter\bin\flutter.bat’’ finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 9s
Exception: Gradle task assembleDebug failed with exit code 1
Plz help me