@
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/01Warning: Mapping new ns
http://schemas.android.com/repository/android/generic/02 to old ns
http://schemas.android.com/repository/android/generic/01Warning: Mapping new ns
http://schemas.android.com/sdk/android/repo/addon2/02 to old ns
http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns
http://schemas.android.com/sdk/android/repo/addon2/03 to old ns
http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns
http://schemas.android.com/sdk/android/repo/repository2/02 to old ns
http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns
http://schemas.android.com/sdk/android/repo/repository2/03 to old ns
http://schemas.android.com/sdk/android/repo/repository2/01Warning: 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/01Warning: 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/01Warning: Mapping new ns
http://schemas.android.com/repository/android/common/02 to old ns
http://schemas.android.com/repository/android/common/01Warning: Mapping new ns
http://schemas.android.com/repository/android/generic/02 to old ns
http://schemas.android.com/repository/android/generic/01