Closed CoterJiesen closed 8 months ago
环境配置如下:
[√] Flutter (Channel stable, 3.19.3, on Microsoft Windows [版本 10.0.22631.3235], locale zh-CN) • Flutter version 3.19.3 on channel stable at D:\dev\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ba39319843 (4 days ago), 2024-03-07 15:22:21 -0600 • Engine revision 2e4ba9c6fb • Dart version 3.3.1 • DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at D:\dev\Android\Sdk • Platform android-33, build-tools 33.0.0 • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
编译报错: /C:/Users/jc/AppData/Local/Pub/Cache/hosted/pub.dev/asuka-2.2.0/lib/src/asuka_singleton_deprecated.dart(104,10): error G0A383C70: Expected 0 type arguments. [E:\my_test\clash-for-flutter\build\windows\x64\flutter\flutter_assemble.vcxproj] /C:/Users/jc/AppData/Local/Pub/Cache/hosted/pub.dev/asuka-2.2.0/lib/src/asuka_singleton.dart(186,12): error G0A383C70: Expected 0 type arguments. [E:\my_test\clash-for-flutter\build\windows\x64\flutter\flutter_assemble.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'E:\my_test\clash-for-flutter\build\windows\x64\CMakeFiles\f3c93ee1011ccbeab3bc097aee595140\flutter_windows.dll.rule;E:\my_test\clash-for-flutter\build\windows\x64\CMakeFiles\7044b983997cd483576a57c06b281348\flutter_assemble.rule;E:\my_test\clash-for-flutter\windows\flutter\CMakeLists.txt' exited with code 1. [E:\my_test\clash-for-flutter\build\windows\x64\flutter\flutter_assemble.vcxproj]
可以了,用3.16版本就可以,新版本报错
环境配置如下:
[√] Flutter (Channel stable, 3.19.3, on Microsoft Windows [版本 10.0.22631.3235], locale zh-CN) • Flutter version 3.19.3 on channel stable at D:\dev\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ba39319843 (4 days ago), 2024-03-07 15:22:21 -0600 • Engine revision 2e4ba9c6fb • Dart version 3.3.1 • DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at D:\dev\Android\Sdk • Platform android-33, build-tools 33.0.0 • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
编译报错: /C:/Users/jc/AppData/Local/Pub/Cache/hosted/pub.dev/asuka-2.2.0/lib/src/asuka_singleton_deprecated.dart(104,10): error G0A383C70: Expected 0 type arguments. [E:\my_test\clash-for-flutter\build\windows\x64\flutter\flutter_assemble.vcxproj] /C:/Users/jc/AppData/Local/Pub/Cache/hosted/pub.dev/asuka-2.2.0/lib/src/asuka_singleton.dart(186,12): error G0A383C70: Expected 0 type arguments. [E:\my_test\clash-for-flutter\build\windows\x64\flutter\flutter_assemble.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'E:\my_test\clash-for-flutter\build\windows\x64\CMakeFiles\f3c93ee1011ccbeab3bc097aee595140\flutter_windows.dll.rule;E:\my_test\clash-for-flutter\build\windows\x64\CMakeFiles\7044b983997cd483576a57c06b281348\flutter_assemble.rule;E:\my_test\clash-for-flutter\windows\flutter\CMakeLists.txt' exited with code 1. [E:\my_test\clash-for-flutter\build\windows\x64\flutter\flutter_assemble.vcxproj]