[flutter] 解决 Exception: Build process failed

/ 1,203评论 / 9360阅读 / 2点赞

类型1:新引入一个包后出现

Launching lib\main.dart on Windows in debug mode...
Nuget.exe not found, trying to download or use cached version.
Building Windows application...                                    35.1s
Exception: Build process failed.
......
16>D:\0Acoolight\Program\flutter\mymusic\windows\flutter\ephemeral\.plugin_symlinks\desktop_multi_window\windows\flutter_window.cc(22,10): fatal  error C1083: 无法打开包括文件: “window_size/window_size_plugin.h”: No such file or directory
16>window_channel.cc
9>正在生成代码...
9>  正在创建库 D:/0Acoolight/Program/flutter/mymusic/build/windows/plugins/media_kit_video/Debug/media_kit_video_plugin.lib 和对象 D:/0Acoolight/Program/flutter/mymusic/build/windows/plugins/media_kit_video/Debug/media_kit_video_plugin.exp
9>media_kit_video_plugin.vcxproj -> D:\0Acoolight\Program\flutter\mymusic\build\windows\plugins\media_kit_video\Debug\media_kit_video_plugin.dll
16>base_flutter_window.cc
16>正在生成代码...
16>已完成生成项目“desktop_multi_window_plugin.vcxproj”的操作 - 失败。
17>------ 已启动生成: 项目: mymusic, 配置: Debug x64 ------
17>Building Custom Rule D:/0Acoolight/Program/flutter/mymusic/windows/runner/CMakeLists.txt
17>flutter_window.cpp
17>main.cpp
17>utils.cpp
17>win32_window.cpp
17>generated_plugin_registrant.cc
17>正在生成代码...
17>LINK : fatal error LNK1104: 无法打开文件“..\plugins\desktop_multi_window\Debug\desktop_multi_window_plugin.lib”
17>已完成生成项目“mymusic.vcxproj”的操作 - 失败。
18>------ 已启动生成: 项目: ALL_BUILD, 配置: Debug x64 ------
18>Building Custom Rule D:/0Acoolight/Program/flutter/mymusic/windows/CMakeLists.txt
19>------ 已启动生成: 项目: INSTALL, 配置: Debug x64 ------
19>-- Install configuration: "Debug"
19>CMake Error at cmake_install.cmake:115 (file):
19>  file INSTALL cannot find
19>  "D:/0Acoolight/Program/flutter/mymusic/build/windows/runner/Debug/mymusic.exe":
19>  No error.
19>
19>
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: 命令“setlocal
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmEnd
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmErrorLevel
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: exit /b %1
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmDone
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
19>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :VCEnd”已退出,代码为 1。
19>已完成生成项目“INSTALL.vcxproj”的操作 - 失败。
========== 生成: 16 成功,3 失败,0 最新,0 已跳过 ==========
 window_size: 
   git: 
     url: https://github.com/google/flutter-desktop-embedding
     path: plugins/window_size

类型2:有时候突然发癫

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: ���setlocal [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmEnd [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmErrorLevel [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: exit /b %1 [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmDone [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :VCEnd�����˳�������Ϊ 1�� [D:\0Acoolight\Program\flutter\mymusic\build\windows\INSTALL.vcxproj]
Building Windows application...                                    33.3s
Exception: Build process failed.

类型3:突然发癫解决办法-2

  1. Здесь можно где можно купить сейф для дома сейфы для дома цена

  2. Здесь можно домашние сейфы цены сейф для дома

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注