V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  aboutboy  ›  全部回复第 2 页 / 共 8 页
回复总数  146
1  2  3  4  5  6  7  8  
230 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg

PS C:\Users\lce\Downloads\wootz-browser-up-browser-new> flutter pub get
Running "flutter pub get" in wootz-browser-up-browser-new...
Resolving dependencies... (1.5s)
_fe_analyzer_shared 61.0.0 (67.0.0 available)
analyzer 5.13.0 (6.4.1 available)
args 2.3.1 (2.4.2 available)
async 2.10.0 (2.11.0 available)
characters 1.2.1 (1.3.0 available)
collection 1.17.0 (1.18.0 available)
convert 3.0.2 (3.1.1 available)
coverage 1.6.3 (1.7.2 available)
crypto 3.0.2 (3.0.3 available)
file 6.1.4 (7.0.0 available)
flutter_inappwebview 6.0.0-beta.21 (6.0.0 available)
flutter_inappwebview_internal_annotations 1.1.0 (1.1.1 available)
http_parser 4.0.1 (4.0.2 available)
js 0.6.5 (0.7.1 available)
logging 1.0.2 (1.2.0 available)
matcher 0.12.13 (0.12.16+1 available)
material_color_utilities 0.2.0 (0.11.1 available)
meta 1.8.0 (1.14.0 available)
mime 1.0.2 (1.0.5 available)
mocktail 0.3.0 (1.0.3 available)
path 1.8.2 (1.9.0 available)
source_span 1.9.1 (1.10.0 available)
stack_trace 1.11.0 (1.11.1 available)
stream_channel 2.1.1 (2.1.2 available)
test 1.22.0 (1.25.2 available)
test_api 0.4.16 (0.7.0 available)
test_core 0.4.20 (0.6.0 available)
typed_data 1.3.1 (1.3.2 available)
vm_service 9.4.0 (14.2.0 available)
watcher 1.0.2 (1.1.0 available)
web_socket_channel 2.2.0 (2.4.4 available)
webkit_inspection_protocol 1.2.0 (1.2.1 available)
yaml 3.1.1 (3.1.2 available)
Got dependencies!


大佬,好像没提示问题。

我执行 flutter run -v ,第一次出现 error 的位置,贴出来帮我再看看:

PS C:\Users\lce\Downloads\wootz-browser-up-browser-new> flutter run -v

[ +21 ms] executing: C:\Users\lce\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[ +18 ms] <- compile package:youtube_player_flutter/main.dart
[ +84 ms] --------- beginning of main
04-07 07:01:17.943 D/StatusBarIconController( 773): ignoring old pipeline callbacks, because the new mobile icons are enabled
[ +10 ms] executing: C:\Users\lce\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[ +50 ms] Android Debug Bridge version 1.0.41
Version 34.0.4-10411341
Installed as C:\Users\lce\AppData\Local\Android\Sdk\platform-tools\adb.exe
Running on Windows 10.0.19045
[ +3 ms] executing: C:\Users\lce\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[ +51 ms] Building APK
[ +16 ms] Running Gradle task 'assembleDebug'...
[ +8 ms] Using gradle from C:\Users\lce\Downloads\wootz-browser-up-browser-new\android\gradlew.bat.
[ +18 ms] executing: [C:\Users\lce\Downloads\wootz-browser-up-browser-new\android/] C:\Users\lce\Downloads\wootz-browser-up-browser-new\android\gradlew.bat --full-stacktrace --info
-Pverbose=true -Ptarget-platform=android-x64 -Ptarget=C:\Users\lce\Downloads\wootz-browser-up-browser-new\lib\main.dart -Pbase-application-name=android.app.Application
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root
assembleDebug
[ +127 ms] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/screens/open_app_pin_failed.dart'.
[ +2 ms] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/app_config.dart'.
[ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/navigator_service.dart'.
[ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/rpc_urls.dart'.
[ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/wc_connector.dart'.
[ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/models/browser_model.dart'.
[ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/models/webview_model.dart'.
[ ] Error: Couldn't resolve the package 'flutter_downloader' in 'package:flutter_downloader/flutter_downloader.dart'.
[ ] Error: Couldn't resolve the package 'flutter_phoenix' in 'package:flutter_phoenix/flutter_phoenix.dart'.
[ ] Error: Couldn't resolve the package 'flutter_secure_storage' in 'package:flutter_secure_storage/flutter_secure_storage.dart'.
[ ] Error: Couldn't resolve the package 'hive' in 'package:hive/hive.dart'.
[ ] Error: Couldn't resolve the package 'hive_flutter' in 'package:hive_flutter/hive_flutter.dart'.
[ ] Error: Couldn't resolve the package 'multi_value_listenable_builder' in 'package:multi_value_listenable_builder/multi_value_listenable_builder.dart'.
[ ] Error: Couldn't resolve the package 'path_provider' in 'package:path_provider/path_provider.dart'.
[ ] Error: Couldn't resolve the package 'permission_handler' in 'package:permission_handler/permission_handler.dart'.
[ ] Error: Couldn't resolve the package 'provider' in 'package:provider/provider.dart'.
[ +4 ms] lib/main.dart:3:8: Error: Not found: 'package:cryptowallet/screens/open_app_pin_failed.dart'
[ ] import 'package:cryptowallet/screens/open_app_pin_failed.dart';
[ ] ^
[ +3 ms] lib/main.dart:4:8: Error: Not found: 'package:cryptowallet/utils/app_config.dart'
[ ] import 'package:cryptowallet/utils/app_config.dart';
[ ] ^
[ ] lib/main.dart:5:8: Error: Not found: 'package:cryptowallet/utils/navigator_service.dart'
[ ] import 'package:cryptowallet/utils/navigator_service.dart';
[ ] ^
[ ] lib/main.dart:6:8: Error: Not found: 'package:cryptowallet/utils/rpc_urls.dart'
[ +1 ms] import 'package:cryptowallet/utils/rpc_urls.dart';
[ ] ^
[ ] lib/main.dart:7:8: Error: Not found: 'package:cryptowallet/utils/wc_connector.dart'
[ ] import 'package:cryptowallet/utils/wc_connector.dart';
[ ] ^
[ +7 ms] lib/main.dart:10:8: Error: Not found: 'package:cryptowallet/models/browser_model.dart'
[ ] import 'package:cryptowallet/models/browser_model.dart';
[ ] ^
[ ] lib/main.dart:11:8: Error: Not found: 'package:cryptowallet/models/webview_model.dart'
[ ] import 'package:cryptowallet/models/webview_model.dart';
[ ] ^
[ ] lib/main.dart:12:8: Error: Not found: 'package:flutter_downloader/flutter_downloader.dart'
[ ] import 'package:flutter_downloader/flutter_downloader.dart';
[ ] ^
[ ] lib/main.dart:13:8: Error: Not found: 'package:flutter_phoenix/flutter_phoenix.dart'
[ ] import 'package:flutter_phoenix/flutter_phoenix.dart';
[ ] ^
[ ] lib/main.dart:14:8: Error: Not found: 'package:flutter_secure_storage/flutter_secure_storage.dart'
[ ] import 'package:flutter_secure_storage/flutter_secure_storage.dart';
[ ] ^
[ ] lib/main.dart:15:8: Error: Not found: 'package:hive/hive.dart'
[ ] import 'package:hive/hive.dart';
[ ] ^
[ ] lib/main.dart:16:8: Error: Not found: 'package:hive_flutter/hive_flutter.dart'
[ ] import 'package:hive_flutter/hive_flutter.dart';
[ ] ^
[ ] lib/main.dart:17:8: Error: Not found: 'package:multi_value_listenable_builder/multi_value_listenable_builder.dart'
[ ] import 'package:multi_value_listenable_builder/multi_value_listenable_builder.dart';
[ ] ^
[ ] lib/main.dart:18:8: Error: Not found: 'package:path_provider/path_provider.dart'
[ ] import 'package:path_provider/path_provider.dart';
[ ] ^
[ ] lib/main.dart:19:8: Error: Not found: 'package:permission_handler/permission_handler.dart'
[ ] import 'package:permission_handler/permission_handler.dart';
[ ] ^
[ ] lib/main.dart:20:8: Error: Not found: 'package:provider/provider.dart'
[ ] import 'package:provider/provider.dart';
[ ] ^
[ ] Error: Couldn't resolve the package 'flutter_localizations' in 'package:flutter_localizations/flutter_localizations.dart'.
[ ] Error: Couldn't resolve the package 'intl' in 'package:intl/intl.dart'.
[ ] lib/browser.dart:4:8: Error: Not found: 'package:cryptowallet/utils/wc_connector.dart'
[ ] import 'package:cryptowallet/utils/wc_connector.dart';

还有,编译中有这样的 warning ,我怀疑是不是和 gradle 版本有关,我目前是 6.8:
Running Gradle task 'assembleRelease'...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
233 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg 大佬,我之前环境配置有点问题,现在安装了 flutter sdk 3.7.12 的版本,同时也配置了 android api 34 的 device ,重新运行 flutter run -v ,日志有点多,我只贴红色部分:


[ +1 ms] Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
[ +2 ms] Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
[ +1 ms] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
[ ] Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
[ ] Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
[ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01




[ +1 ms] [ +282 ms] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/screens/open_app_pin_failed.dart'.
[ ] [ +1 ms] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/app_config.dart'.
[ ] [ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/navigator_service.dart'.
[ ] [ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/rpc_urls.dart'.
[ ] [ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/utils/wc_connector.dart'.
[ ] [ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/models/browser_model.dart'.
[ ] [ ] Error: Couldn't resolve the package 'cryptowallet' in 'package:cryptowallet/models/webview_model.dart'.
[ ] [ ] Error: Couldn't resolve the package 'flutter_downloader' in 'package:flutter_downloader/flutter_downloader.dart'.
[ ] [ ] Error: Couldn't resolve the package 'flutter_phoenix' in 'package:flutter_phoenix/flutter_phoenix.dart'.
[ ] [ ] Error: Couldn't resolve the package 'flutter_secure_storage' in 'package:flutter_secure_storage/flutter_secure_storage.dart'.
[ ] [ ] Error: Couldn't resolve the package 'hive' in 'package:hive/hive.dart'.
[ ] [ ] Error: Couldn't resolve the package 'hive_flutter' in 'package:hive_flutter/hive_flutter.dart'.
[ ] [ ] Error: Couldn't resolve the package 'multi_value_listenable_builder' in 'package:multi_value_listenable_builder/multi_value_listenable_builder.dart'.
[ ] [ ] Error: Couldn't resolve the package 'path_provider' in 'package:path_provider/path_provider.dart'.
[ ] [ ] Error: Couldn't resolve the package 'permission_handler' in 'package:permission_handler/permission_handler.dart'.
[ ] [ ] Error: Couldn't resolve the package 'provider' in 'package:provider/provider.dart'.
[ ] [ +6 ms] lib/main.dart:3:8: Error: Not found: 'package:cryptowallet/screens/open_app_pin_failed.dart'
[ ] [ ] import 'package:cryptowallet/screens/open_app_pin_failed.dart';
[ ] [ ] ^
[ ] [ +6 ms] lib/main.dart:4:8: Error: Not found: 'package:cryptowallet/utils/app_config.dart'
[ ] [ ] import 'package:cryptowallet/utils/app_config.dart';

[ +181 ms] [ +614 ms] lib/models/provider.dart:6:14: Error: Undefined name 'Hive'.
[ ] [ ] final pref = Hive.box(secureStorageKey);
[ +1 ms] [ ] ^^^^
[ +187 ms] [ +220 ms] lib/custom_popup_menu_item.dart:28:21: Error: The parameter 'value' of the method 'CustomPopupMenuItem.represents' has type 'T', which does not match the
corresponding type, 'T?', in the overridden method, 'PopupMenuEntry.represents'.
[ +1 ms] [ ] Change to a supertype of 'T?', or, for a covariant parameter, a subtype.
[ ] [ ] bool represents(T value) => value == this.value;
[ ] [ ] ^
[ ] [ ] ../flutter_windows_3.7.12-stable/flutter/packages/flutter/lib/src/material/popup_menu.dart:89:8: Context: This is the overridden method ('represents').
[ ] [ ] bool represents(T? value);
[ ] [ ] ^
[ +297 ms] [ +223 ms] .dart_tool/flutter_gen/gen_l10n/app_localization.dart:86:5: Error: Undefined name 'GlobalMaterialLocalizations'.
[ ] [ ] GlobalMaterialLocalizations.delegate,
[ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ ] [ ] .dart_tool/flutter_gen/gen_l10n/app_localization.dart:87:5: Error: Undefined name 'GlobalCupertinoLocalizations'.
[ ] [ ] GlobalCupertinoLocalizations.delegate,
[ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ ] [ ] .dart_tool/flutter_gen/gen_l10n/app_localization.dart:88:5: Error: Undefined name 'GlobalWidgetsLocalizations'.
[ ] [ ] GlobalWidgetsLocalizations.delegate,
[ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^^



[ ] FAILURE: Build failed with an exception.
[ ] * Where:
[ ] Script 'C:\Users\lce\Downloads\flutter_windows_3.7.12-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1157
[ ] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildDebug'.
[ ] > Process 'command 'C:\Users\lce\Downloads\flutter_windows_3.7.12-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1
[ ] * Try:
[ ] Run with --debug option to get more log output. Run with --scan to get full insights.
[ ] * Exception is:
[ ] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileFlutterBuildDebug'.
[ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186)
[ ] at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268)




[ +3 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +4 ms] "flutter run" took 17,732ms.
[ +3 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:722:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
234 天前
回复了 aboutboy 创建的主题 MacBook Pro 有没有购买教育版的渠道?
@ohhoo 好感谢
234 天前
回复了 aboutboy 创建的主题 MacBook Pro 有没有购买教育版的渠道?
@print 试试
234 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
上面的提示和之前的一样。。

不过我现在越来越明了一点,我看了 pubspec.yaml 文件,最后的配置是:
assets:
- assets/speedometer.webp

我看文件夹确实没有 assets/speedometer.webp 这个文件
234 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
抱歉,我实在小白,上面的我研究了下,在 pubspec.yaml 文件 flutter 节点添加 generate: true ,解决了上面的问题。

新的 flutter run -v 提示如下:
...
IO : Writing 3049269 characters to text file C:\Users\lce\AppData\Local\Pub\Cache\log\pub_log.txt.
MSG : Logs written to C:\Users\lce\AppData\Local\Pub\Cache\log\pub_log.txt.
[+15294 ms] Found plugin flutter_inappwebview at C:\Users\lce\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_inappwebview-6.0.0-beta.21\
[ +201 ms] Found plugin flutter_inappwebview at C:\Users\lce\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_inappwebview-6.0.0-beta.21\
[ +126 ms] Found plugin flutter_inappwebview at C:\Users\lce\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_inappwebview-6.0.0-beta.21\
[ +165 ms] Generating C:\Users\lce\Downloads\wootz-browser-up-browser-new\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +67 ms] Launching lib\main.dart on Chrome in debug mode...
[ +95 ms] Initializing file store
[ +3 ms] gen_localizations: Starting due to {}
[ +73 ms] Skipping target: gen_dart_plugin_registrant
[ +12 ms] gen_localizations: Complete
[ +17 ms] _composite: Starting due to {}
[ ] _composite: Complete
[ +6 ms] complete
[ +2 ms] Updating assets
[ +91 ms] Error detected in pubspec.yaml:
[ +1 ms] No file or variants found for asset: assets/speedometer.webp.

[ +2 ms] Failed to compile application.
[ +11 ms] "flutter run" took 17,918ms.
[ +6 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:752:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1350:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150: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:348:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:294:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:112:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>


[ +243 ms] ensureAnalyticsSent: 232ms
[ +1 ms] Running 1 shutdown hook
[ +2 ms] Shutdown hooks complete
[ ] exiting with code 1
234 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg

PS C:\Users\lce\Downloads\wootz-browser-up-browser-new> flutter run -v
[ +162 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 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.
[ +2 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.
[ +54 ms] executing: C:\Users\lce\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[ +66 ms] List of devices attached
[ +7 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.
[ +7 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.
[ +71 ms] Connected devices:
[ +45 ms] Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.86
[ +1 ms] Edge (web) • edge • web-javascript • Microsoft Edge 123.0.2420.65
[ ] [1]: Chrome (chrome)
[ ] [2]: Edge (edge)
[ +1 ms] Please choose one (or "q" to quit)
[ ] :
[+2694 ms] 1
[ +18 ms] Initializing file store
[ +1 ms] Done initializing file store
[ +11 ms] gen_localizations: Starting due to {}
[ +10 ms] Persisting file store
[ +2 ms] Done persisting file store
[ +10 ms] "flutter run" took 3,040ms.
[ +19 ms] Generating synthetic localizations package failed with 1 error:

Exception: Attempted to generate localizations code without having the flutter: generate flag turned on.
Check pubspec.yaml and ensure that flutter: generate: true has been added and rebuild the project. Otherwise, the localizations source code will not be importable.
[ +2 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 generateLocalizationsSyntheticPackage (package:flutter_tools/src/dart/generate_synthetic_packages.dart:62:5)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1638:7)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1350:27)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#5 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#6 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:348:9)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11 main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>


[ +258 ms] ensureAnalyticsSent: 251ms
[ ] Running 0 shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
PS C:\Users\lce\Downloads\wootz-browser-up-browser-new>



大佬,我重新拉了一份,flutter run -v 提示如上
234 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg 不清楚为什么。今天去看这个项目,好像代码不一样了
236 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg 麻烦大佬看看。。大佬可否 github fork 这个项目,帮我写一个小白能看懂的编译教程,开通打赏。不然我实在不好意思总是麻烦大佬

PS C:\Users\lce\Downloads\wootz-browser-up-browser> flutter run -v
[ +165 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 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.
[ +3 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 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +74 ms] Connected devices:
[ +48 ms] Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.86
[ +1 ms] Edge (web) • edge • web-javascript • Microsoft Edge 123.0.2420.65
[ ] [1]: Chrome (chrome)
[ ] [2]: Edge (edge)
[ +1 ms] Please choose one (or "q" to quit)
[ ] :
[+178655 ms]
[ +1 ms] Please choose one (or "q" to quit)
[ +1 ms] :
[+6383 ms] 1
[ +11 ms] Initializing file store
[ +2 ms] Done initializing file store
[ +23 ms] Skipping target: gen_localizations
[ +1 ms] Persisting file store
[ +3 ms] Done persisting file store
[ +6 ms] Skipping pub get: version match.
[ +44 ms] Found plugin flutter_inappwebview at C:\Users\lce\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\flutter_inappwebview-6.0.0-beta.21\
[ +99 ms] Found plugin flutter_inappwebview at C:\Users\lce\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\flutter_inappwebview-6.0.0-beta.21\
[ +72 ms] Found plugin flutter_inappwebview at C:\Users\lce\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\flutter_inappwebview-6.0.0-beta.21\
[ +105 ms] Generating C:\Users\lce\Downloads\wootz-browser-up-browser\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +69 ms] Launching lib\main.dart on Chrome in debug mode...
[ +106 ms] Initializing file store
[ +2 ms] gen_localizations: Starting due to {}
[ +128 ms] Skipping target: gen_dart_plugin_registrant
[ +6 ms] gen_localizations: Complete
[ +8 ms] _composite: Starting due to {}
[ ] _composite: Complete
[ +2 ms] complete
[ +1 ms] Updating assets
[ +44 ms] Error detected in pubspec.yaml:
[ ] No file or variants found for asset: assets/speedometer.webp.

[ +2 ms] Failed to compile application.
[ +9 ms] "flutter run" took 186,098ms.
[ +3 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:752:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1350:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150: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:348:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:294:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:112:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>


[ +268 ms] ensureAnalyticsSent: 263ms
[ +1 ms] Running 1 shutdown hook
[ +1 ms] Shutdown hooks complete
[ ] exiting with code 1



------------------------------------------------------------------

C:\Users\lce\Downloads\flutter\bin\flutter.bat --no-color build apk

Running Gradle task 'assembleRelease'...

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\lce\Downloads\wootz-browser-up-browser\android\build.gradle' line: 27

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> Could not open proj generic class cache for build file 'C:\Users\lce\Downloads\wootz-browser-up-browser\android\app\build.gradle' (C:\Users\lce\.gradle\caches\6.8\scripts\2qmxpn79oie3wctwqhuplb01k).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Running Gradle task 'assembleRelease'... 2,117ms

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │
│ for Gradle. │
│ │
│ To fix this issue, consult the migration guide at docs.flutter.dev/go/android-java-gradle-error. │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
237 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg 我这边还是不能编译成功,麻烦可以加我微信指导下吗?
238 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg 大佬,可加我微信
239 天前
回复了 aboutboy 创建的主题 Flutter 请教一个 flutter 开源项目的编译问题,小偿
@jifengg 感谢。搞定加我微信
2023-11-24 14:57:59 +08:00
回复了 aboutboy 创建的主题 酷工作 独立开发者,日入 1k 是不是有点少?
@xxycode 也算不错的尝试了
2023-11-21 18:52:00 +08:00
回复了 aboutboy 创建的主题 Flutter base 武汉,找一个移动端开发者
@jojo0830 要干的事情本来也不简单,哈哈
2023-11-21 14:30:33 +08:00
回复了 louchenabc 创建的主题 分享创造 我开发的浏览器信息记录工具(huntly)开源啦
很厉害
2023-11-21 14:14:15 +08:00
回复了 guooo 创建的主题 Flutter 长沙招 Flutter 开发伙伴
我在在找 flutter 开始,base 武汉,麻烦有兴趣的关注下
2023-11-21 14:12:59 +08:00
回复了 xiguadong 创建的主题 Flutter 我想给用 flutter 开发的听书 app 接广告
好像有点麻烦
2023-11-21 14:11:45 +08:00
回复了 HRliangxin 创建的主题 Flutter 全网寻找一个 flutter
这薪水好高。我也想找个会 flutter 的开发合作
2023-11-21 14:08:34 +08:00
回复了 fluter 创建的主题 生活 30 来岁,很迷梦,不知道未来的路在哪里
会 flutter 开发吗?
2023-11-20 14:55:45 +08:00
回复了 aboutboy 创建的主题 酷工作 独立开发者,日入 1k 是不是有点少?
因为我做的是移动端浏览器项目,后面上架后可以优先为各位移动开发者免费接入产品。
就算是对 v2 社区的回馈了。谢谢。
1  2  3  4  5  6  7  8  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   915 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 22:22 · PVG 06:22 · LAX 14:22 · JFK 17:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.