[flutter] 解决 Exception: Build process failed

/ 110评论 / 2087阅读 / 0点赞

类型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. Reliver Pro is a dietary supplement formulated with a blend of natural ingredients aimed at supporting liver health

  2. Carbofix is the revolutionary dietary formula that promises to activate weight loss without all the extra hard work. https://carbofix-try.com

  3. Hydrossential is actually a skincare serum or you can say a skincare supplement created by Emma Smith to help women keep their skin looking beautiful and flawless. https://hydrossential-web.com/

  4. xitox说道:

    Xitox’s foot pads contain a combination of powerful herbs that help provide a soothing experience for your feet after a long day. https://xitox-web.com/

  5. Volca Burn is a weight loss supplement that uses a “red tingle hack” to help you rapidly lose weight without dieting or exercising. https://volcaburn-web.com/

  6. keravita pro说道:

    Keravita Pro™ is a dietary supplement created by Benjamin Jones that effectively addresses nail fungus and hair loss, promoting the growth of healthier and thicker nails and hair. The formula is designed to target the underlying causes of these health issues and provide comprehensive treatment. https://keravitapro-web.com

  7. honeyburn说道:

    HoneyBurn is a revolutionary liquid weight loss formula that stands as the epitome of excellence in the industry. https://honeyburn-web.com/

  8. gorilla flow说道:

    Gorilla Flow prostate is an all-natural dietary supplement for men which aims to decrease inflammation in the prostate to decrease common urinary tract issues such as frequent and night-time urination, leakage, or blocked urine stream. https://gorillaflow-web.com

  9. vidacalm说道:

    VidaCalm is an all-natural blend of herbs and plant extracts that treat tinnitus and help you live a peaceful life. https://vidacalm-web.com/

  10. terracalm说道:

    Introducing TerraCalm, a soothing mask designed specifically for your toenails. Unlike serums and lotions that can be sticky and challenging to include in your daily routine, TerraCalm can be easily washed off after just a minute. https://terracalm-web.com/

发表回复

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