admin管理员组文章数量:1124536
When I run my flutter app I get an error:
Target debug_android_application failed: PathExistsException: Cannot copy file to 'path of png', path = 'C:\Users\User\Desktop\flutter_projects\quiz_app\assets\images\quizlogo.png' (OS Error: Cannot create a file when that file already exists., errno = 183)
When I write flutter clean and then flutter pub get in the terminal and restart VS Code I can run my app for one time but after this one time the error appears again.
code of pubspec.yaml where I declare assets if it helps:
assets:
- assets/images/
How can I fix this?
When I run my flutter app I get an error:
Target debug_android_application failed: PathExistsException: Cannot copy file to 'path of png', path = 'C:\Users\User\Desktop\flutter_projects\quiz_app\assets\images\quizlogo.png' (OS Error: Cannot create a file when that file already exists., errno = 183)
When I write flutter clean and then flutter pub get in the terminal and restart VS Code I can run my app for one time but after this one time the error appears again.
code of pubspec.yaml where I declare assets if it helps:
assets:
- assets/images/
How can I fix this?
Share Improve this question edited 2 days ago Frank van Puffelen 598k84 gold badges887 silver badges858 bronze badges asked 2 days ago JackJack 234 bronze badges1 Answer
Reset to default 0Ensure the indentation is correct in your pubspec.yaml. YAML is very sensitive to indentation.
flutter:
assets:
- assets/images/
本文标签: dartHow to solve PathExistsException error in flutterStack Overflow
版权声明:本文标题:dart - How to solve PathExistsException error in flutter? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736637218a1945909.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论