当我尝试运行我的应用程序时,我收到此附加错误。有任何想法吗?(以下)
Launching lib\main.dart on SM J200Y in debug mode...
Running Gradle task 'assembleDebug'...
? Built build\app\outputs\apk\debug\app-debug.apk.
Error detected in pubspec.yaml:
No file or variants found for asset: assets/credentials.json.
Run Code Online (Sandbox Code Playgroud)
我检查了 yaml 文件,格式似乎没问题。我不知所措。(另外,下面)
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/credentials.json
Run Code Online (Sandbox Code Playgroud)