簡體   English   中英

在 chrome 上運行 flutter 應用程序時出現此錯誤

[英]getting this error while running flutter app on chrome

我正在嘗試在 Chrome 上運行我的應用程序,但出現了這些錯誤。 還安裝了 windows 視覺 c++ 更新但仍然無法使用 f5:

Unable to launch browser : spawn unknown 
  "version": "0.2.0",
    "configurations": [
        {
            "type": "pwa-chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:8080",
            "webRoot": "${workspaceFolder}"
        }
    ]
}

Flutter 運行-d chrome:

CreateProcessW failed 14001

Oops; flutter has exited unexpectedly: "ProcessException: The application has failed to start because its side-by-side configuration is incorrect.
Please see the application event log or use the command-line sxstrace.exe tool for more detail.

  Command: C:\Users\abc\AppData\Local\Google\Chrome\Application\chrome.exe
  --user-data-dir=C:\Users\abc\AppData\Local\Temp\flutter_tools.282fd59e\flutter_tools_chrome_device.1c0b2e2a --remote-debugging-port=1636
  --disable-background-timer-throttling --disable-extensions --disable-popup-blocking --bwsi --no-first-run --no-default-browser-check
  --disable-default-apps --disable-translate http://localhost:1573".
A crash report has been written to D:\LaughBit\laughbit\flutter_06.log.
This crash may already be reported. Check GitHub for similar crashes.
https://github.com/flutter/flutter/issues?q=is%3Aissue+ProcessException%3A+The+application+has+failed+to+start+because+its+side-by-side+configuration+is+incorrect.+Please+see+the+application+event+log+or+use+the+command-line+sxstrace.exe+tool+for+more+detail.%0D%0A%0A++Command%3A+C%3A%5CUsers%5Cabc%5CAppData%5CLocal%5CGoogle%5CChrome%5CApplication%5Cchrome.exe+--user-data-dir%3DC%3A%5CUsers%5Cabc%5CAppData%5CLocal%5CTemp%5Cflutter_tools.282fd59e%5Cflutter_tools_chrome_device.1c0b2e2a+--remote-debugging-port%3D1636+--disable-background-timer-throttling+--disable-extensions+--disable-popup-blocking+--bwsi+--no-first-run+--no-default-browser-check+--disable-default-apps+--disable-translate+http%3A%2F%2Flocalhost%3A1573

To report your crash to the Flutter team, first read the guide to filing a bug.
https://flutter.dev/docs/resources/bug-reports

Create a new GitHub issue by pasting this link into your browser and completing the issue template. Thank you!
https://git.io/JOSer

Go 到 Google Chrome 文件位置,比如 Windows 10/11,甚至在shortcut icon -> Right-click -> Properties -> Open File Location

您將看到 chrome 的兩個應用程序:chrome.exe 和 chrome_new.exe。 運行 chrome_new.exe,它會刪除並替換之前的 chrome.exe。

之后,您就可以再次啟動和使用 Google Chrome 瀏覽器了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM