“$ flutter build web” is throwing the error “Missing index.html”?
问题 When I run: $ flutter build web I'm getting the error Missing index.html. The flutter app is displaying in the browser, but in VS Code it reads "No Device." How can I debug, or fix this problem? 回答1: It would help to see the output of your flutter doctor, but I am guessing that your project is not configured for web. If you haven't already, you need to switch to the flutter beta channel like so: $ flutter channel beta $ flutter upgrade $ flutter config --enable-web At this point, running