Error: unable to locate asset entry in pubspec.yaml: “assets/fonts/Lato-Regular.ttf”
问题 Before I wrote this, I searched everywhere for my mistake, but I didn't find anything. although I have everything correctly and written down in the pubspec.yaml file, I get this error in the debug console: Launching lib/main.dart on Android SDK built for x86 in debug mode... Error: unable to locate asset entry in pubspec.yaml: "assets/fonts/Lato-Regular.ttf". ✓ Built build/app/outputs/apk/debug/app-debug.apk. Error: unable to locate asset entry in pubspec.yaml: "assets/fonts/Lato-Regular.ttf"