Closed LambGe closed 1 month ago
只是建了一个空工程,没有任何的改动,也在main.cpp文件添加了: initCEFProcesses(); handleWndProcForCEF(msg.hwnd, msg.message, msg.wParam, msg.lParam);
以下是详细的信息 PS D:\work\webview_test> flutter run --verbose [ +91 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +2 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +30 ms] executing: C:\Users\DELL\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l [ +38 ms] List of devices attached [ +3 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +40 ms] Connected devices: [ +22 ms] Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.22631.4037] [ ] Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.120 [ ] Edge (web) • edge • web-javascript • Microsoft Edge 128.0.2739.54
[ ] Please choose one (or "q" to quit)
[ ] :
[+2001 ms] 1
[ +9 ms] Skipping pub get: version match.
[ +38 ms] Found plugin webview_cef at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_cef-0.2.0\
[ +3 ms] Found plugin webview_windows at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_windows-0.4.0\
[ +36 ms] Found plugin webview_cef at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_cef-0.2.0\
[ +1 ms] Found plugin webview_windows at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_windows-0.4.0\
[ +27 ms] Found plugin webview_cef at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_cef-0.2.0\
[ +2 ms] Found plugin webview_windows at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_windows-0.4.0\
[ +4 ms] Generating D:\work\webview_test\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +115 ms] No packages with native assets. Skipping native assets compilation.
[ +1 ms] Initializing file store
[ +4 ms] Skipping target: gen_localizations
[ +2 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
D:\work\webview_test.dart_tool\package_config_subset}
[ +19 ms] Found plugin webview_cef at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_cef-0.2.0\
[ +1 ms] Found plugin webview_windows at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_windows-0.4.0\
[ +5 ms] gen_dart_plugin_registrant: Complete
[ ] Skipping target: _composite
[ +1 ms] complete
[ +3 ms] Launching lib\main.dart on Windows in debug mode...
[ +1 ms] D:\dev\flutterSdk\bin\cache\dart-sdk\bin\dartaotruntime.exe --disable-dart-dev
D:\dev\flutterSdk\bin\cache\dart-sdk\bin\snapshots\frontend_server_aot.dart.snapshot --sdk-root
D:\dev\flutterSdk\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --experimental-emit-debug-metadata --output-dill
C:\Users\DELL\AppData\Local\Temp\flutter_tools.7f8e091e\flutter_tool.77182066\app.dill --packages D:\work\webview_test.dart_tool\package_config.json
-Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build\cache.dill.track.dill --verbosity=error --enable-experiment=alternative-invalidation-strategy
[ +13 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[ +38 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[ ] []
[ ] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[ +33 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[ ] [
{
"instanceId": "f0938b6f",
"installDate": "2024-07-08T10:23:56Z",
"installationName": "VisualStudio/17.10.3+35013.160",
"installationPath": "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools",
"installationVersion": "17.10.35013.160",
"productId": "Microsoft.VisualStudio.Product.BuildTools",
"productPath": "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\LaunchDevCmd.bat",
"state": 4294967295,
"isComplete": true,
"isLaunchable": true,
"isPrerelease": false,
"isRebootRequired": false,
"displayName": "Visual Studio 生成工具 2022",
"description": "Visual Studio 生成工具允许生成本机和基于 MSBuild 的托管 .NET 应用程序,而不需要 Visual Studio IDE。还可以选择安装 Visual C++ 编译 器和库、MFC、ALT 和 C++/CLI 支持。",
"channelId": "VisualStudio.17.Release",
"channelUri": "https://aka.ms/vs/17/release/channel",
"enginePath": "C:\Program Files (x86)\Microsoft Visual
Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service",
"installedChannelId": "VisualStudio.17.Release",
"installedChannelUri": "https://aka.ms/vs/17/release/channel",
"releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.10#17.10.3",
"resolvedInstallationPath": "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools",
"thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288",
"updateDate": "2024-07-08T10:23:56.7078554Z",
"catalog": {
"buildBranch": "d17.10",
"buildVersion": "17.10.35013.160",
"id": "VisualStudio/17.10.3+35013.160",
"localBuild": "build-lab",
"manifestName": "VisualStudio",
"manifestType": "installer",
"productDisplayVersion": "17.10.3",
"productLine": "Dev17",
"productLineVersion": "2022",
"productMilestone": "RTW",
"productMilestoneIsPreRelease": "False",
"productName": "Visual Studio",
"productPatchVersion": "3",
"productPreReleaseMilestoneSuffix": "1.0",
"productSemanticVersion": "17.10.3+35013.160",
"requiredEngineVersion": "3.10.2154.60269"
},
"properties": {
"campaignId": "",
"channelManifestId": "VisualStudio.17.Release/17.10.3+35013.160",
"includeRecommended": "0",
"nickname": "2",
"setupEngineFilePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe"
}
}
]
[ +3 ms] Building Windows application...
[ +4 ms] <- compile package:webview_test/main.dart
[ +1 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S
D:\work\webview_test\windows -B D:\work\webview_test\build\windows\x64 -G Visual Studio 17 2022 -A x64 -DFLUTTER_TARGET_PLATFORM=windows-x64
[ +47 ms] -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
[ +12 ms] CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:9 (message):
[ +1 ms] current system is Windows
[ ] Call Stack (most recent call first):
[ ] flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:15 (include)
[ ] CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:55 (message):
[ ] No
[ ] D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/../third/cef/version.txt
[ ] found
[ ] Call Stack (most recent call first):
[ ] flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
[ ] CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:71 (message):
[ ] Need to update
[ ] D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/../third/cef
[ ] Call Stack (most recent call first):
[ ] flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
[ ] CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:43 (message):
[ ] Downloading
[ ] D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/prebuilt.zip
[ ] from
[ ] https://github.com/hlwhl/webview_cef/releases/download/prebuilt_cef_bin_linux/webview_cef_bin_0.0.2_101.0.18+chromium-101.0.4951.67_windows64.zip
[ ] Call Stack (most recent call first):
[ ] flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:73 (download_file)
[ ] flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
[+21060 ms] CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:19 (message):
[ +1 ms] D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/prebuilt.zip
[ ] will extract to
[ ] D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/../third/cef
[ ] ...
[ ] Call Stack (most recent call first):
[ ] flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:75 (extract_file)
[ ] flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
[ +127 ms] -- Up-to-date: D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/../third/cef
[ +5 ms] -- Building with D3D texture support.
[ ] -- Configuring done (21.2s)
[ +395 ms] -- Generating done (0.4s)
[ +38 ms] -- Build files have been written to: D:/work/webview_test/build/windows/x64
[ +20 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build
D:\work\webview_test\build\windows\x64 --config Debug --target INSTALL --verbose
[ +52 ms] Change Dir: 'D:/work/webview_test/build/windows/x64'
[ ] Run Build Command(s): "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/amd64/MSBuild.exe" INSTALL.vcxproj
/p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
[ +43 ms] 适用于 .NET Framework MSBuild 版本 17.10.4+10fbfbf2e
[ +24 ms] 生成启动时间为 2024/9/2 11:22:32。
[ +121 ms] 节点 1 上的项目“D:\work\webview_test\build\windows\x64\INSTALL.vcxproj”(默认目标)。
[ ] 项目“D:\work\webview_test\build\windows\x64\INSTALL.vcxproj”(1)正在节点 1 上生成“D:\work\webview_test\build\windows\x64\ZERO_CHECK.vcxproj”(2) (默认目)。
[ ] PrepareForBuild:
[ ] 已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
[ +2 ms] InitializeBuildStatus:
[ ] 正在创建“x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
[ ] 正在对“x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”执行 Touch 任务。
[ +8 ms] CustomBuild:
[ ] 所有输出均为最新。
[ +55 ms] 1>Checking Build System
[ +45 ms] FinalizeBuildStatus:
[ ] 正在删除文件“x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”。
[ ] 正在对“x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate”执行 Touch 任务。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\ZERO_CHECK.vcxproj”(默认目标)的操作。
[ +27 ms] 项目“D:\work\webview_test\build\windows\x64\INSTALL.vcxproj”(1)正在节点 1 上生成“D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(3) (默认目
标)。
[ ] 项目“D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(3)正在节点 1
上生成“D:\work\webview_test\build\windows\x64\plugins\webview_windows\webview_windows_DEPENDENCIES_DOWNLOAD.vcxproj”(4) (默认目标)。
[ ] PrepareForBuild:
[ ] 已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
[ ] InitializeBuildStatus:
[ ] 正在创建“x64\Debug\webview_windows_DEPENDENCIESDOWNLOAD\webview.A76752E6.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
[ ] 正在对“x64\Debug\webview_windows_DEPENDENCIESDOWNLOAD\webview.A76752E6.tlog\unsuccessfulbuild”执行 Touch 任务。
[ ] PreBuildEvent:
[ ] setlocal
[ ] C:\Users\DELL\AppData\Local\Microsoft\WinGet\Links\nuget.exe install Microsoft.Windows.ImplementationLibrary -Version 1.0.220914.1 -ExcludeVersion
-OutputDirectory D:/work/webview_test/build/windows/x64/packages
[ ] if %errorlevel% neq 0 goto :cmEnd
[ ] C:\Users\DELL\AppData\Local\Microsoft\WinGet\Links\nuget.exe install Microsoft.Web.WebView2 -Version 1.0.1210.39 -ExcludeVersion -OutputDirectory
D:/work/webview_test/build/windows/x64/packages
[ ] if %errorlevel% neq 0 goto :cmEnd
[ ] :cmEnd
[ ] endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
[ ] :cmErrorLevel
[ ] exit /b %1
[ ] :cmDone
[ ] if %errorlevel% neq 0 goto :VCEnd
[ ] :VCEnd
[ +349 ms] Feeds used:
[ ] C:\Users\DELL.nuget\packages\
[ ] https://api.nuget.org/v3/index.json
[ ] C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
[ +63 ms] Package "Microsoft.Windows.ImplementationLibrary.1.0.220914.1" is already installed.
[ +339 ms] Feeds used:
[ ] C:\Users\DELL.nuget\packages\
[ ] https://api.nuget.org/v3/index.json
[ ] C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
[ +55 ms] Package "Microsoft.Web.WebView2.1.0.1210.39" is already installed.
[ +12 ms] CustomBuild:
[ ] 所有输出均为最新。
[ +3 ms] FinalizeBuildStatus:
[ ] 正在删除文件“x64\Debug\webview_windows_DEPENDENCIESDOWNLOAD\webview.A76752E6.tlog\unsuccessfulbuild”。
[ ] 正在对“x64\Debug\webview_windows_DEPENDENCIESDOWNLOAD\webview.A76752E6.tlog\webview_windows_DEPENDENCIES_DOWNLOAD.lastbuildstate”执行 Touch 任务。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\plugins\webview_windows\webview_windows_DEPENDENCIES_DOWNLOAD.vcxproj”(默认目标)的操作。
[ +27 ms] 项目“D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(3)正在节点 1
上生成“D:\work\webview_test\build\windows\x64\flutter\flutter_wrapper_app.vcxproj”(5) (默认目标)。
[ ] 项目“D:\work\webview_test\build\windows\x64\flutter\flutter_wrapper_app.vcxproj”(5)正在节点 1
上生成“D:\work\webview_test\build\windows\x64\flutter\flutter_assemble.vcxproj”(6) (默认目标)。
[ ] PrepareForBuild:
[ ] 已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
[ ] InitializeBuildStatus:
[ ] 正在创建“x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
[ ] 正在对“x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild”执行 Touch 任务。
[ ] CustomBuild:
[ ]
“‘D:\work\webview_test\build\windows\x64\CMakeFiles\e6dd8f6e583ecdfae4864fc6f9f934e7\flutter_assemble.rule’的生成依赖于由‘D:\work\webview_test\build\windows\x64\CMakeFi
les\4e750f407a57d27a7e19b7d52fb8958e\flutter_windows.dll.rule’的生成所产生的‘D:\WORK\WEBVIEW_TEST\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL’。无法并行生成项 。”
[ +32 ms] Generating D:/work/webview_test/windows/flutter/ephemeral/flutter_windows.dll, D:/work/webview_test/windows/flutter/ephemeral/flutter_export.h,
D:/work/webview_test/windows/flutter/ephemeral/flutter_windows.h, D:/work/webview_test/windows/flutter/ephemeral/flutter_messenger.h,
D:/work/webview_test/windows/flutter/ephemeral/flutter_plugin_registrar.h, D:/work/webview_test/windows/flutter/ephemeral/flutter_texture_registrar.h,
D:/work/webview_test/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc,
D:/work/webview_test/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc,
D:/work/webview_test/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc,
D:/work/webview_test/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc,
D:/work/webview_test/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, phony
[ +335 ms] [ +43 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ ] [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +42 ms] [ +48 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +43 ms] [ +44 ms] Initializing file store
[ +13 ms] [ +13 ms] Skipping target: gen_localizations
[ +4 ms] [ +4 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
D:\work\webview_test.dart_tool\package_config_subset}
[ +2 ms] [ +2 ms] unpack_windows: Starting due to {}
[ +158 ms] [ +158 ms] unpack_windows: Complete
[+2299 ms] [+2299 ms] Found plugin webview_cef at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_cef-0.2.0\
[ +3 ms] [ +3 ms] Found plugin webview_windows at C:\Users\DELL\AppData\Local\Pub\Cache\hosted\pub.dev\webview_windows-0.4.0\
[ +6 ms] [ +6 ms] gen_dart_plugin_registrant: Complete
[ +1 ms] [ +1 ms] kernel_snapshot_program: Starting due to {}
[ +5 ms] [ +4 ms] D:\dev\flutterSdk\bin\cache\dart-sdk\bin\dartaotruntime.exe --disable-dart-dev
D:\dev\flutterSdk\bin\cache\dart-sdk\bin\snapshots\frontend_server_aot.dart.snapshot --sdk-root
D:\dev\flutterSdk\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation --packages D:\work\webview_test.dart_tool\package_config.json --output-dill
D:\work\webview_test.dart_tool\flutter_build\309f1e839333fab714cd3e280d7653d0\program.dill --depfile
D:\work\webview_test.dart_tool\flutter_build\309f1e839333fab714cd3e280d7653d0\kernel_snapshot_program.d --incremental --initialize-from-dill
D:\work\webview_test.dart_tool\flutter_build\309f1e839333fab714cd3e280d7653d0\program.dill --verbosity=error package:webview_test/main.dart
[+2937 ms] [+2937 ms] kernel_snapshot_program: Complete
[ +402 ms] [ +402 ms] native_assets: Starting due to {}
[ +9 ms] [ +9 ms] No packages with native assets. Skipping native assets compilation.
[ ] [ ] Writing native_assets.yaml.
[ +9 ms] [ +9 ms] Writing D:\work\webview_test.dart_tool\flutter_build\309f1e839333fab714cd3e280d7653d0\native_assets.yaml done.
[ ] [ ] native_assets: Complete
[ +1 ms] [ +1 ms] kernel_snapshot_native_assets: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
D:\work\webview_test.dart_tool\flutter_build\309f1e839333fab714cd3e280d7653d0\native_assets.yaml,D:\work\webview_test.dart_tool\package_config_subset,D:\dev\fl
utterSdk\packages\flutter_tools\lib\src\build_system\targets\common.dart,D:\dev\flutterSdk\bin\internal\engine.version,D:\dev\flutterSdk\bin\internal\engine.vers
ion,D:\dev\flutterSdk\bin\internal\engine.version,D:\dev\flutterSdk\bin\internal\engine.version}
[ +1 ms] [ +1 ms] kernel_snapshot_native_assets: Complete
[ +1 ms] [ +1 ms] kernel_snapshot: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
D:\work\webview_test.dart_tool\flutter_build\309f1e839333fab714cd3e280d7653d0\program.dill,D:\work\webview_test.dart_tool\flutter_build\309f1e839333fab714cd3e2
80d7653d0\native_assets.dill}
[ +14 ms] [ +13 ms] kernel_snapshot: Complete
[ ] [ +1 ms] debug_bundle_windows-x64_assets: Starting due to {}
[ +75 ms] [ +75 ms] shaderc command: [D:\dev\flutterSdk\bin\cache\artifacts\engine\windows-x64\impellerc.exe, --sksl, --runtime-stage-gles,
--runtime-stage-vulkan, --iplr, --sl=D:\work\webview_test\build\flutter_assets\shaders/ink_sparkle.frag,
--spirv=D:\work\webview_test\build\flutter_assets\shaders/ink_sparkle.frag.spirv,
--input=D:\dev\flutterSdk\packages\flutter\lib\src\material\shaders\ink_sparkle.frag, --input-type=frag,
--include=D:\dev\flutterSdk\packages\flutter\lib\src\material\shaders, --include=D:\dev\flutterSdk\bin\cache\artifacts\engine\windows-x64\shader_lib]
[ +392 ms] [ +392 ms] debug_bundle_windows-x64_assets: Complete
[ +318 ms] [ +318 ms] Persisting file store
[ +3 ms] [ +4 ms] Done persisting file store
[ +4 ms] [ +4 ms] build succeeded.
[ +4 ms] [ +4 ms] "flutter assemble" took 6,778ms.
[ +169 ms] [ +168 ms] ensureAnalyticsSent: 128ms
[ +1 ms] [ ] Running 1 shutdown hook
[ ] [ ] Shutdown hooks complete
[ +4 ms] [ +6 ms] exiting with code 0
[ +51 ms] FinalizeBuildStatus:
[ ] 正在删除文件“x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild”。
[ ] 正在对“x64\Debug\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate”执行 Touch 任务。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\flutter\flutter_assemble.vcxproj”(默认目标)的操作。
[ +3 ms] PrepareForBuild:
[ ] 已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
[ +17 ms] InitializeBuildStatus:
[ ] 正在创建“flutter_wrapperapp.dir\Debug\flutter.63E2DAD4.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
[ ] 正在对“flutter_wrapperapp.dir\Debug\flutter.63E2DAD4.tlog\unsuccessfulbuild”执行 Touch 任务。
[ ] CustomBuild:
[ ] 所有输出均为最新。
[ +30 ms] ClCompile:
[ ] 所有输出均为最新。
[ +14 ms] Lib:
[ ] 所有输出均为最新。
[ ] flutter_wrapper_app.vcxproj -> D:\work\webview_test\build\windows\x64\flutter\Debug\flutter_wrapper_app.lib
[ +9 ms] FinalizeBuildStatus:
[ ] 正在删除文件“flutter_wrapperapp.dir\Debug\flutter.63E2DAD4.tlog\unsuccessfulbuild”。
[ ] 正在对“flutter_wrapperapp.dir\Debug\flutter.63E2DAD4.tlog\flutter_wrapper_app.lastbuildstate”执行 Touch 任务。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\flutter\flutter_wrapper_app.vcxproj”(默认目标)的操作。
[ +13 ms] 项目“D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(3)正在节点 1
上生成“D:\work\webview_test\build\windows\x64\flutter\flutter_wrapper_plugin.vcxproj”(7) (默认目标)。
[ ] PrepareForBuild:
[ ] 已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
[ ] InitializeBuildStatus:
[ ] 正在创建“flutter_wrapperplugin.dir\Debug\flutter.460A2286.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
[ ] 正在对“flutter_wrapperplugin.dir\Debug\flutter.460A2286.tlog\unsuccessfulbuild”执行 Touch 任务。
[ ] CustomBuild:
[ ] 所有输出均为最新。
[ +4 ms] ClCompile:
[ ] 所有输出均为最新。
[ +1 ms] Lib:
[ ] 所有输出均为最新。
[ ] flutter_wrapper_plugin.vcxproj -> D:\work\webview_test\build\windows\x64\flutter\Debug\flutter_wrapper_plugin.lib
[ +5 ms] FinalizeBuildStatus:
[ ] 正在删除文件“flutter_wrapperplugin.dir\Debug\flutter.460A2286.tlog\unsuccessfulbuild”。
[ ] 正在对“flutter_wrapperplugin.dir\Debug\flutter.460A2286.tlog\flutter_wrapper_plugin.lastbuildstate”执行 Touch 任务。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\flutter\flutter_wrapper_plugin.vcxproj”(默认目标)的操作。
[ +14 ms] 项目“D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(3)正在节点 1
上生成“D:\work\webview_test\build\windows\x64\plugins\webview_cef\webview_cef_plugin.vcxproj”(8) (默认目标)。
[ ] PrepareForBuild:
[ ] 已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
[ ] InitializeBuildStatus:
[ ] 正在对“webview_cefplugin.dir\Debug\webview.068AA241.tlog\unsuccessfulbuild”执行 Touch 任务。
[ ] CustomBuild:
[ ] 所有输出均为最新。
[ +19 ms] ClCompile:
[ ] 所有输出均为最新。
[ +15 ms] Link:
[ ] C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE
/OUT:"D:\work\webview_test\build\windows\x64\plugins\webview_cef\Debug\webview_cef_plugin.dll" /INCREMENTAL
/ILK:"webview_cef_plugin.dir\Debug\webview_cef_plugin.ilk" /NOLOGO ....\flutter\Debug\flutter_wrapper_plugin.lib
D:\work\webview_test\windows\flutter\ephemeral.plugin_symlinks\webview_cef\windows..\third\cef\debug\libcef.lib
D:\work\webview_test\windows\flutter\ephemeral.plugin_symlinks\webview_cef\windows..\third\cef\debug\libcef_dll_wrapper.lib
D:\work\webview_test\windows\flutter\ephemeral\flutter_windows.dll.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG
/PDB:"D:/work/webview_test/build/windows/x64/plugins/webview_cef/Debug/webview_cef_plugin.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"D:/work/webview_test/build/windows/x64/plugins/webview_cef/Debug/webview_cef_plugin.lib" /MACHINE:X64 /machine:x64 /DLL
webview_cef_plugin.dir\Debug\webview_cef_plugin_c_api.obj
[ ] webview_cef_plugin.dir\Debug\webview_cef_plugin.obj
[ ] webview_cef_plugin.dir\Debug\webview_app.obj
[ ] webview_cef_plugin.dir\Debug\webview_handler.obj
[ ] webview_cef_plugin.dir\Debug\webview_plugin.obj
[ ] webview_cef_plugin.dir\Debug\webview_value.obj
[ ] webview_cef_plugin.dir\Debug\webview_js_handler.obj
[ ] webview_cef_plugin.dir\Debug\webview_cookieVisitor.obj
[ +30 ms] LINK : fatal error LNK1104: 无法打开文件“D:\work\webview_test\windows\flutter\ephemeral.plugin_symlinks\webview_cef\windows..\third\cef\debug\libcef.lib”
[D:\work\webview_test\build\windows\x64\plugins\webview_cef\webview_cef_plugin.vcxproj]
[ +4 ms] 已完成生成项目“D:\work\webview_test\build\windows\x64\plugins\webview_cef\webview_cef_plugin.vcxproj”(默认目标)的操作 - 失败。
[ +29 ms] 项目“D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(3)正在节点 1 上生成“D:\work\webview_test\build\windows\x64\runner\webview_test.vcxproj”(9)
(默认目标)。
[ ] 项目“D:\work\webview_test\build\windows\x64\runner\webview_test.vcxproj”(9)正在节点 1
上生成“D:\work\webview_test\build\windows\x64\plugins\webview_windows\webview_windows_plugin.vcxproj”(10) (默认目标)。
[ ] PrepareForBuild:
[ ] 已启用结构化输出。编译器诊断的格式设置将反映错误层次结构。有关详细信息,请参阅 https://aka.ms/cpp/structured-output。
[ ] InitializeBuildStatus:
[ ] 正在创建“webview_windowsplugin.dir\Debug\webview.4314997E.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
[ ] 正在对“webview_windowsplugin.dir\Debug\webview.4314997E.tlog\unsuccessfulbuild”执行 Touch 任务。
[ ] CustomBuild:
[ ] 所有输出均为最新。
[ +14 ms] ClCompile:
[ ] 所有输出均为最新。
[ +10 ms] Link:
[ ] 所有输出均为最新。
[ ] webview_windows_plugin.vcxproj -> D:\work\webview_test\build\windows\x64\plugins\webview_windows\Debug\webview_windows_plugin.dll
[ +3 ms] _CopyOutOfDateSourceItemsToOutputDirectoryAlways:
[ ]
正在将文件从“D:\work\webview_test\build\windows\x64\packages\Microsoft.Web.WebView2\build\native\x64\WebView2Loader.dll”复制到“D:\work\webview_test\build\windows\x64\plug
ins\webview_windows\Debug\WebView2Loader.dll”。
[ +1 ms] FinalizeBuildStatus:
[ ] 正在删除文件“webview_windowsplugin.dir\Debug\webview.4314997E.tlog\unsuccessfulbuild”。
[ ] 正在对“webview_windowsplugin.dir\Debug\webview.4314997E.tlog\webview_windows_plugin.lastbuildstate”执行 Touch 任务。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\plugins\webview_windows\webview_windows_plugin.vcxproj”(默认目标)的操作。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\runner\webview_test.vcxproj”(默认目标)的操作 - 失败。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(默认目标)的操作 - 失败。
[ ] 已完成生成项目“D:\work\webview_test\build\windows\x64\INSTALL.vcxproj”(默认目标)的操作 - 失败。
[ +1 ms] 生成失败。
[ ] “D:\work\webview_test\build\windows\x64\INSTALL.vcxproj”(默认目标) (1) ->
[ ] “D:\work\webview_test\build\windows\x64\ALL_BUILD.vcxproj”(默认目标) (3) ->
[ ] “D:\work\webview_test\build\windows\x64\plugins\webview_cef\webview_cef_plugin.vcxproj”(默认目标) (8) ->
[ ] (Link 目标) ->
[ ] LINK : fatal error LNK1104:
无法打开文件“D:\work\webview_test\windows\flutter\ephemeral.plugin_symlinks\webview_cef\windows..\third\cef\debug\libcef.lib”
[D:\work\webview_test\build\windows\x64\plugins\webview_cef\webview_cef_plugin.vcxproj]
[ ] 0 个警告
[ ] 1 个错误
[ ] 已用时间 00:00:08.74
[ +15 ms] Building Windows application... (completed in 30.6s)
[ ] Error: Build process failed.
[ ] "flutter run" took 33,154ms.
[ +39 ms]
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:874:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension>
[ +123 ms] ensureAnalyticsSent: 122ms [ ] Running 2 shutdown hooks [ +5 ms] Shutdown hooks complete [ +1 ms] exiting with code 1
环境配置:
$ flutter doctor -v [√] Flutter (Channel stable, 3.24.1, on Microsoft Windows [版本 10.0.22631.4037], locale zh-CN) • Flutter version 3.24.1 on channel stable at D:\dev\flutterSdk • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5874a72aa4 (12 days ago), 2024-08-20 16:46:00 -0500 • Engine revision c9b9d5780d • Dart version 3.5.1 • DevTools version 2.37.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\DELL\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio 生成工具 2022 17.10.3) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools • Visual Studio 生成工具 2022 version 17.10.35013.160 • Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2023.3) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
[√] VS Code (version 1.92.2) • VS Code at C:\Users\DELL\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.94.0
[√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.22631.4037] • Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.120 • Edge (web) • edge • web-javascript • Microsoft Edge 128.0.2739.54
[!] Network resources X A network error occurred while checking "https://maven.google.com/": 信号灯超时时间已到
! Doctor found issues in 1 category
你看下prebuilt是不是没有正常下载完成,不挂梯子的话从github上下prebuilt包可能会下不下来。下载的时候会下到插件下的window目录,下载完后会解压到third/cef文件夹下。
我已经挂梯子了,并且可以从浏览器下载下来,但是不能通过脚本下载下来,就很奇怪
而且很奇怪的是这个路径下lib文件是存在的,但是依然报无法打开的错误
这个路径不对 window下的third只有头文件,这个路径保留的原因仅仅时因为现在不同平台依赖的cef版本不同,解压的位置在项目根目录下的third里。 脚本下不下来的原因是因为你vpn没开全局代理或者你的shell没走代理。
可能是我本地的网络或者VPN确实不给力,我先浏览器下载后本地手动处理了,多谢解答。
ok 问题先关闭了
Launching lib\main.dart on Windows in debug mode... Building Windows application... CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:9 (message): current system is Windows Call Stack (most recent call first): flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:15 (include)
CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:55 (message): No D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/../third/cef/version.txt found Call Stack (most recent call first): flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:71 (message): Need to update D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/../third/cef Call Stack (most recent call first): flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:43 (message): Downloading D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/prebuilt.zip from https://github.com/hlwhl/webview_cef/releases/download/prebuilt_cef_bin_linux/webview_cef_bin_0.0.2_101.0.18+chromium-101.0.4951.67_windows64.zip Call Stack (most recent call first): flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:73 (download_file) flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
CMake Warning at flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:19 (message):
D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/prebuilt.zip will extract to D:/work/webview_test/windows/flutter/ephemeral/.plugin_symlinks/webview_cef/windows/../third/cef ... Call Stack (most recent call first): flutter/ephemeral/.plugin_symlinks/webview_cef/third/download.cmake:75 (extract_file) flutter/ephemeral/.plugin_symlinks/webview_cef/windows/CMakeLists.txt:17 (prepare_prebuilt_files)
LINK : fatal error LNK1104: 无法打开文件“D:\work\webview_test\windows\flutter\ephemeral.plugin_symlinks\webview_cef\windows..\third\cef\debug\libcef.lib” [D:\work\webview_test\build\windows\x64\plugins\webview_cef\webview_cef_plugin.vcxproj] Error: Build process failed.