【发布时间】:2020-04-26 15:44:12
【问题描述】:
我在尝试运行我的应用程序时收到此附加错误。有任何想法吗? (下)
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.
我检查了 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
【问题讨论】:
-
您的代码没有正确缩进。
assets和- assets/cr...
标签: android-studio flutter dart