Closed YeFei572 closed 4 years ago
根据报错信息检查pubspec.yaml文件的第二行,第29列。我的代码中只有26列。。。
这是咋个回事呢?我天。看了好久没看出来, 其他的项目都ok
PS E:\keppe_workspace\flutter_workspace\v2\flutter_deer> flutter packages get -v
[ +12 ms] executing: [E:\flutter\flutter_windows_v1.8.3-beta\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +58 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 18cd7a3601bcffb36fdf2f679f763b5e827c2e8e
[ ] executing: [E:\flutter\flutter_windows_v1.8.3-beta\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +385 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ +1 ms] v1.12.13+hotfix.6-0-g18cd7a360
[ +6 ms] executing: [E:\flutter\flutter_windows_v1.8.3-beta\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] executing: [E:\flutter\flutter_windows_v1.8.3-beta\flutter\] git ls-remote --get-url origin
[ +39 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] https://github.com/flutter/flutter.git
[ +75 ms] executing: [E:\flutter\flutter_windows_v1.8.3-beta\flutter\] git rev-parse --abbrev-ref HEAD
[ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ +68 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] 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.
[ +14 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +14 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 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.
[ +10 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +158 ms] Running "flutter pub get" in flutter_deer...
[ +2 ms] Using E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache for the pub cache.
[ +12 ms] executing: [E:\keppe_workspace\flutter_workspace\v2\flutter_deer\] E:\flutter\flutter_windows_v1.8.3-beta\flutter\bin\cache\dart-sdk\bin\pub.bat --verbose get --no-precompile
[ +129 ms] FINE: Pub 2.7.0
[ +2 ms] IO : Spawning "cmd /c ver" in E:\keppe_workspace\flutter_workspace\v2\flutter_deer\.
[ +4 ms] IO : Finished ver. Exit code 0.
[ ] | stdout:
[ ] | |
[ ] | | Microsoft Windows [Version 10.0.18362.535]
[ ] | Nothing output on stderr.
[ +106 ms] MSG : Resolving dependencies...
[ +7 ms] SLVR: fact: flutter_deer is 1.0.8
[ +5 ms] SLVR: derived: flutter_deer
[ +27 ms] SLVR: fact: flutter_deer depends on flutter any from sdk
[ +4 ms] SLVR: fact: flutter_deer depends on flutter_localizations any from sdk
[ ] SLVR: fact: flutter_deer depends on oktoast ^2.3.0
[ ] SLVR: fact: flutter_deer depends on dio ^3.0.8
[ +1 ms] SLVR: fact: flutter_deer depends on rxdart ^0.22.5
[ ] SLVR: fact: flutter_deer depends on common_utils ^1.1.3
[ ] SLVR: fact: flutter_deer depends on flustars 0.2.6+1
[ ] SLVR: fact: flutter_deer depends on flutter_swiper ^1.1.6
[ +30 ms] SLVR: fact: flutter_deer depends on url_launcher 5.4.1
[ +4 ms] SLVR: fact: flutter_deer depends on image_picker 0.6.2+3
[ +3 ms] SLVR: fact: flutter_deer depends on flutter_slidable ^0.5.4
[ +1 ms] SLVR: fact: flutter_deer depends on webview_flutter 0.3.18+1
[ ] SLVR: fact: flutter_deer depends on keyboard_actions ^2.1.2
[ ] SLVR: fact: flutter_deer depends on sticky_headers ^0.1.8+1
[ ] SLVR: fact: flutter_deer depends on azlistview ^0.1.2
[ +6 ms] SLVR: fact: flutter_deer depends on simple_gesture_detector ^0.1.4
[ +1 ms] SLVR: fact: flutter_deer depends on fluro ^1.5.1
[ +1 ms] SLVR: fact: flutter_deer depends on cached_network_image ^2.0.0
[ +3 ms] SLVR: fact: flutter_deer depends on sprintf ^4.0.2
[ +11 ms] SLVR: fact: flutter_deer depends on provider ^4.0.1
[ ] SLVR: fact: flutter_deer depends on flutter_2d_amap from git
[ ] SLVR: fact: flutter_deer depends on barcode_scan from git
[ ] SLVR: fact: flutter_deer depends on flutter_test any from sdk
[ ] SLVR: fact: flutter_deer depends on flutter_driver any from sdk
[ +2 ms] SLVR: fact: flutter_deer depends on test ^1.9.4
[ +9 ms] SLVR: selecting flutter_deer
[ +2 ms] SLVR: derived: test ^1.9.4
[ ] SLVR: derived: flutter_driver any from sdk
[ +10 ms] SLVR: derived: flutter_test any from sdk
[ ] SLVR: derived: barcode_scan from git
[ ] SLVR: derived: flutter_2d_amap from git
[ +1 ms] SLVR: derived: provider ^4.0.1
[ ] SLVR: derived: sprintf ^4.0.2
[ ] SLVR: derived: cached_network_image ^2.0.0
[ ] SLVR: derived: fluro ^1.5.1
[ ] SLVR: derived: simple_gesture_detector ^0.1.4
[ ] SLVR: derived: azlistview ^0.1.2
[ ] SLVR: derived: sticky_headers ^0.1.8+1
[ ] SLVR: derived: keyboard_actions ^2.1.2
[ +11 ms] SLVR: derived: webview_flutter 0.3.18+1
[ +3 ms] SLVR: derived: flutter_slidable ^0.5.4
[ ] SLVR: derived: image_picker 0.6.2+3
[ ] SLVR: derived: url_launcher 5.4.1
[ ] SLVR: derived: flutter_swiper ^1.1.6
[ +11 ms] SLVR: derived: flustars 0.2.6+1
[ +2 ms] SLVR: derived: common_utils ^1.1.3
[ ] SLVR: derived: rxdart ^0.22.5
[ +1 ms] SLVR: derived: dio ^3.0.8
[ ] SLVR: derived: oktoast ^2.3.0
[ ] SLVR: derived: flutter_localizations any from sdk
[ +8 ms] SLVR: derived: flutter any from sdk
[ +2 ms] SLVR: fact: test 1.9.4 depends on analyzer >=0.36.0 <0.40.0
[ ] SLVR: fact: test 1.9.4 depends on async ^2.0.0
[ ] SLVR: fact: test 1.9.4 depends on boolean_selector ^1.0.0
[ ] SLVR: fact: test 1.9.4 depends on http_multi_server ^2.0.0
[ ] SLVR: fact: test 1.9.4 depends on io ^0.3.0
[ ] SLVR: fact: test 1.9.4 depends on js ^0.6.0
[ ] SLVR: fact: test 1.9.4 depends on multi_server_socket ^1.0.0
[ ] SLVR: fact: test 1.9.4 depends on node_preamble ^1.3.0
[ ] SLVR: fact: test 1.9.4 depends on package_resolver ^1.0.0
[ +10 ms] SLVR: fact: test 1.9.4 depends on path ^1.2.0
[ +1 ms] SLVR: fact: test 1.9.4 depends on pedantic ^1.1.0
[ +1 ms] SLVR: fact: test 1.9.4 depends on pool ^1.3.0
[ ] SLVR: fact: test 1.9.4 depends on shelf ^0.7.0
[ ] SLVR: fact: test 1.9.4 depends on shelf_packages_handler ^1.0.0
[ +12 ms] SLVR: fact: test 1.9.4 depends on shelf_static ^0.2.6
[ +2 ms] SLVR: fact: test 1.9.4 depends on shelf_web_socket ^0.2.0
[ ] SLVR: fact: test 1.9.4 depends on source_span ^1.4.0
[ ] SLVR: fact: test 1.9.4 depends on stack_trace ^1.9.0
[ ] SLVR: fact: test 1.9.4 depends on stream_channel >=1.7.0 <3.0.0
[ ] SLVR: fact: test 1.9.4 depends on typed_data ^1.0.0
[ ] SLVR: fact: test 1.9.4 depends on web_socket_channel ^1.0.0
[ ] SLVR: fact: test 1.9.4 depends on yaml ^2.0.0
[ ] SLVR: fact: test 1.9.4 depends on test_api 0.2.11
[ ] SLVR: fact: test 1.9.4 depends on test_core 0.2.15
[ ] SLVR: selecting test 1.9.4
[ +3 ms] SLVR: derived: test_core 0.2.15
[ +6 ms] SLVR: derived: test_api 0.2.11
[ ] SLVR: derived: yaml ^2.0.0
[ +1 ms] SLVR: derived: web_socket_channel ^1.0.0
[ +1 ms] SLVR: derived: typed_data ^1.0.0
[ ] SLVR: derived: stream_channel >=1.7.0 <3.0.0
[ ] SLVR: derived: stack_trace ^1.9.0
[ ] SLVR: derived: source_span ^1.4.0
[ ] SLVR: derived: shelf_web_socket ^0.2.0
[ ] SLVR: derived: shelf_static ^0.2.6
[ ] SLVR: derived: shelf_packages_handler ^1.0.0
[ +7 ms] SLVR: derived: shelf ^0.7.0
[ ] SLVR: derived: pool ^1.3.0
[ ] SLVR: derived: pedantic ^1.1.0
[ ] SLVR: derived: path ^1.2.0
[ ] SLVR: derived: package_resolver ^1.0.0
[ ] SLVR: derived: node_preamble ^1.3.0
[ ] SLVR: derived: multi_server_socket ^1.0.0
[ ] SLVR: derived: js ^0.6.0
[ ] SLVR: derived: io ^0.3.0
[ ] SLVR: derived: http_multi_server ^2.0.0
[ ] SLVR: derived: boolean_selector ^1.0.0
[ ] SLVR: derived: async ^2.0.0
[ ] SLVR: derived: analyzer >=0.36.0 <0.40.0
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on file 5.1.0
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on json_rpc_2 2.1.0
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on meta 1.1.8
[ +6 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on path 1.6.4
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on web_socket_channel 1.1.0
[ +2 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on vm_service_client 0.2.6+2
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on flutter any from sdk
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on flutter_test any from sdk
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on fuchsia_remote_debug_protocol any from sdk
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on archive 2.0.11
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on args 1.5.2
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on async 2.4.0
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on boolean_selector 1.0.5
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on charcode 1.1.2
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on collection 1.14.11
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on convert 2.1.1
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on crypto 2.1.3
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on image 2.1.4
[ +11 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on intl 0.16.0
[ +2 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on matcher 0.12.6
[ +1 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on pedantic 1.8.0+1
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on petitparser 2.4.0
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on platform 2.2.1
[ +10 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on process 3.0.12
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on pub_semver 1.4.2
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on source_span 1.5.5
[ +1 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on stack_trace 1.9.3
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on stream_channel 2.0.0
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on string_scanner 1.0.5
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on term_glyph 1.1.0
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on test_api 0.2.11
[ +8 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on typed_data 1.1.6
[ ] SLVR: fact: flutter_driver 0.0.0 from sdk depends on vector_math 2.0.8
[ +2 ms] SLVR: fact: flutter_driver 0.0.0 from sdk depends on xml 3.5.0
[ ] SLVR: selecting flutter_driver 0.0.0 from sdk
[ +1 ms] SLVR: derived: xml 3.5.0
[ ] SLVR: derived: vector_math 2.0.8
[ ] SLVR: derived: typed_data 1.1.6
[ ] SLVR: derived: term_glyph 1.1.0
[ ] SLVR: derived: string_scanner 1.0.5
[ ] SLVR: derived: stream_channel 2.0.0
[ ] SLVR: derived: stack_trace 1.9.3
[ +9 ms] SLVR: derived: source_span 1.5.5
[ ] SLVR: derived: pub_semver 1.4.2
[ ] SLVR: derived: process 3.0.12
[ +1 ms] SLVR: derived: platform 2.2.1
[ ] SLVR: derived: petitparser 2.4.0
[ ] SLVR: derived: pedantic 1.8.0+1
[ ] SLVR: derived: matcher 0.12.6
[ ] SLVR: derived: intl 0.16.0
[ ] SLVR: derived: image 2.1.4
[ ] SLVR: derived: crypto 2.1.3
[ ] SLVR: derived: convert 2.1.1
[ +8 ms] SLVR: derived: collection 1.14.11
[ ] SLVR: derived: charcode 1.1.2
[ +1 ms] SLVR: derived: boolean_selector 1.0.5
[ +1 ms] SLVR: derived: async 2.4.0
[ ] SLVR: derived: args 1.5.2
[ ] SLVR: derived: archive 2.0.11
[ ] SLVR: derived: fuchsia_remote_debug_protocol any from sdk
[ ] SLVR: derived: vm_service_client 0.2.6+2
[ ] SLVR: derived: web_socket_channel 1.1.0
[ ] SLVR: derived: path 1.6.4
[ ] SLVR: derived: meta 1.1.8
[ ] SLVR: derived: json_rpc_2 2.1.0
[ ] SLVR: derived: file 5.1.0
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on flutter any from sdk
[ +9 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on test_api 0.2.11
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on path 1.6.4
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on image 2.1.4
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on quiver 2.0.5
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on stack_trace 1.9.3
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on vector_math 2.0.8
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on archive 2.0.11
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on args 1.5.2
[ +11 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on async 2.4.0
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on boolean_selector 1.0.5
[ +2 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on charcode 1.1.2
[ +10 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on collection 1.14.11
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on convert 2.1.1
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on crypto 2.1.3
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on matcher 0.12.6
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on meta 1.1.8
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on pedantic 1.8.0+1
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on petitparser 2.4.0
[ +10 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on source_span 1.5.5
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on stream_channel 2.0.0
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on string_scanner 1.0.5
[ +1 ms] SLVR: fact: flutter_test 0.0.0 from sdk depends on term_glyph 1.1.0
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on typed_data 1.1.6
[ ] SLVR: fact: flutter_test 0.0.0 from sdk depends on xml 3.5.0
[ ] SLVR: selecting flutter_test 0.0.0 from sdk
[ +1 ms] SLVR: derived: quiver 2.0.5
[ +11 ms] IO : Spawning "cmd /c git --version" in E:\keppe_workspace\flutter_workspace\v2\flutter_deer\.
[ +4 ms] IO : Finished git. Exit code 0.
[ +1 ms] | stdout:
[ +11 ms] | | git version 2.12.2.windows.2
[ +4 ms] | Nothing output on stderr.
[ +9 ms] FINE: Determined git command git.
[ +2 ms] IO : Spawning "cmd /c git rev-parse --is-inside-git-dir" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_barcode_reader-9b0ea6230415fc3990178d365e59dd3141b664ed
[ +34 ms] IO : Finished git. Exit code 0.
[ ] | stdout:
[ ] | | true
[ ] | Nothing output on stderr.
[ ] IO : Spawning "cmd /c git rev-list --max-count=1 fbd6ece45f079f7ec5f48532e668be2f70135904" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_barcode_reader-9b0ea6230415fc3990178d365e59dd3141b664ed
[ +58 ms] IO : Finished git. Exit code 0.
[ ] | stdout:
[ ] | | fbd6ece45f079f7ec5f48532e668be2f70135904
[ ] | Nothing output on stderr.
[ ] IO : Spawning "cmd /c git show fbd6ece45f079f7ec5f48532e668be2f70135904:pubspec.yaml" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_barcode_reader-9b0ea6230415fc3990178d365e59dd3141b664ed
[ +39 ms] IO : Finished git. Exit code 0.
[ +1 ms] | stdout:
[ ] | | name: barcode_scan
[ ] | | description: A flutter plugin for scanning 2D barcodes and QRCodes.
[ +1 ms] | | version: 1.0.0
[ +2 ms] | | author: Matthew Smith<matthew.smith@apptreesoftware.com>
[ +1 ms] | | homepage: https://github.com/apptreesoftware/flutter_barcode_reader
[ +2 ms] | |
[ ] | | dependencies:
[ ] | | flutter:
[ ] | | sdk: flutter
[ ] | |
[ ] | | environment:
[ ] | | sdk: ">=2.0.0-dev.58.0 <3.0.0"
[ ] | | flutter: ">=1.10.0 <2.0.0"
[ ] | |
[ ] | | # For information on the generic Dart part of this file, see the
[ ] | | # following page: https://www.dartlang.org/tools/pub/pubspec
[ ] | |
[ ] | | # The following section is specific to Flutter.
[ ] | | flutter:
[ +7 ms] | | plugin:
[ +1 ms] | | platforms:
[ +1 ms] | | android:
[ ] | | package: com.apptreesoftware.barcodescan
[ ] | | pluginClass: BarcodeScanPlugin
[ ] | | ios:
[ ] | | pluginClass: BarcodeScanPlugin
[ ] | |
[ ] | | # To add assets to your plugin package, add an assets section, like this:
[ ] | | # assets:
[ ] | | # - images/a_dot_burr.jpeg
[ ] | | # - images/a_dot_ham.jpeg
[ ] | | #
[ ] | | # For details regarding assets in packages, see
[ +8 ms] | | # https://flutter.io/assets-and-images/#from-packages
[ +2 ms] | | #
[ ] | | # An image asset can refer to one or more resolution-specific "variants", see
[ ] | | # https://flutter.io/assets-and-images/#resolution-aware.
[ ] | |
[ ] | | # To add custom fonts to your plugin package, add a fonts section here,
[ ] | | # in this "flutter" section. Each entry in this list should have a
[ ] | | # "family" key with the font family name, and a "fonts" key with a
[ ] | | # list giving the asset and other descriptors for the font. For
[ ] | | # example:
[ +10 ms] | | # fonts:
[ +2 ms] | | # - family: Schyler
[ ] | | # fonts:
[ ] | | # - asset: fonts/Schyler-Regular.ttf
[ ] | | # - asset: fonts/Schyler-Italic.ttf
[ ] | | # style: italic
[ ] | | # - family: Trajan Pro
[ ] | | # fonts:
[ ] | | # - asset: fonts/TrajanPro.ttf
[ ] | | # - asset: fonts/TrajanPro_Bold.ttf
[ +10 ms] | | # weight: 700
[ ] | | #
[ +2 ms] | | # For details regarding fonts in packages, see
[ ] | | # https://flutter.io/custom-fonts/#from-packages
[ ] | Nothing output on stderr.
[ ] SLVR: fact: barcode_scan 1.0.0 from git depends on flutter any from sdk
[ ] SLVR: selecting barcode_scan 1.0.0 from git
[ ] IO : Spawning "cmd /c git rev-parse --is-inside-git-dir" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_2d_amap-0ba2da4d0d8341f5e36a785b5f183c059d0fbdee
[ +10 ms] IO : Finished git. Exit code 0.
[ +2 ms] | stdout:
[ ] | | true
[ ] | Nothing output on stderr.
[ ] IO : Spawning "cmd /c git rev-list --max-count=1 40b0e5a73dea40f4264e3e274bb0ef4dd64c0689" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_2d_amap-0ba2da4d0d8341f5e36a785b5f183c059d0fbdee
[ +44 ms] IO : Finished git. Exit code 0.
[ ] | stdout:
[ ] | | 40b0e5a73dea40f4264e3e274bb0ef4dd64c0689
[ ] | Nothing output on stderr.
[ ] IO : Spawning "cmd /c git show 40b0e5a73dea40f4264e3e274bb0ef4dd64c0689:pubspec.yaml" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_2d_amap-0ba2da4d0d8341f5e36a785b5f183c059d0fbdee
[ +46 ms] IO : Finished git. Exit code 0.
[ ] | stdout:
[ ] | | name: flutter_2d_amap
[ +1 ms] | | description: 高德2D地图æ’件
[ ] | | version: 0.0.2
[ ] | | homepage: 'https://github.com/simplezhli/flutter_2d_amap'
[ ] | |
[ ] | | environment:
[ ] | | sdk: ">=2.1.0 <3.0.0"
[ ] | | flutter: ">=1.10.0 <2.0.0"
[ ] | |
[ ] | | dependencies:
[ ] | | flutter:
[ ] | | sdk: flutter
[ +10 ms] | |
[ +2 ms] | | dev_dependencies:
[ +1 ms] | | flutter_test:
[ ] | | sdk: flutter
[ ] | |
[ ] | | # For information on the generic Dart part of this file, see the
[ ] | | # following page: https://www.dartlang.org/tools/pub/pubspec
[ ] | |
[ ] | | # The following section is specific to Flutter.
[ +8 ms] | | flutter:
[ +1 ms] | | # This section identifies this Flutter project as a plugin project.
[ +1 ms] | | # The androidPackage and pluginClass identifiers should not ordinarily
[ ] | | # be modified. They are used by the tooling to maintain consistency when
[ ] | | # adding or updating assets for this project.
[ ] | | plugin:
[ ] | | platforms:
[ ] | | android:
[ ] | | package: com.weilu.flutter.flutter_2d_amap
[ ] | | pluginClass: Flutter2dAmapPlugin
[ ] | | ios:
[ +3 ms] | | pluginClass: Flutter2dAmapPlugin
[ +6 ms] | Nothing output on stderr.
[ +1 ms] FINE: Failed to parse pubspec for flutter_2d_amap 0.0.2 from git:
[ +2 ms] | Error on line 2, column 29: Unexpected character.
[ ] | ╷
[ ] | 2 │ description: 高德2D地图æ’件
[ +1 ms] | │ ^
[ +8 ms] | ╵
[ +3 ms] SLVR: fact: no versions of flutter_2d_amap from git match 0.0.2
[ ] SLVR: derived: not flutter_2d_amap 0.0.2 from git
[ ] IO : Spawning "cmd /c git rev-parse --is-inside-git-dir" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_2d_amap-0ba2da4d0d8341f5e36a785b5f183c059d0fbdee
[ +1 ms] IO : Finished git. Exit code 0.
[ +1 ms] | stdout:
[ ] | | true
[ +10 ms] | Nothing output on stderr.
[ ] IO : Spawning "cmd /c git fetch" in E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_2d_amap-0ba2da4d0d8341f5e36a785b5f183c059d0fbdee
[+3881 ms] IO : Finished git. Exit code 0.
[ ] | Nothing output on stdout.
[ ] | Nothing output on stderr.
[ +1 ms] IO : Spawning "cmd /c git rev-list --max-count=1 HEAD" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_2d_amap-0ba2da4d0d8341f5e36a785b5f183c059d0fbdee
[ +48 ms] IO : Finished git. Exit code 0.
[ ] | stdout:
[ ] | | 40b0e5a73dea40f4264e3e274bb0ef4dd64c0689
[ ] | Nothing output on stderr.
[ ] IO : Spawning "cmd /c git show 40b0e5a73dea40f4264e3e274bb0ef4dd64c0689:pubspec.yaml" in
E:\flutter\flutter_windows_v1.8.3-beta\flutter\.pub-cache\git\cache\flutter_2d_amap-0ba2da4d0d8341f5e36a785b5f183c059d0fbdee
[ +50 ms] IO : Finished git. Exit code 0.
[ ] | stdout:
[ ] | | name: flutter_2d_amap
[ +1 ms] | | description: 高德2D地图æ’件
[ +7 ms] | | version: 0.0.2
[ +3 ms] | | homepage: 'https://github.com/simplezhli/flutter_2d_amap'
[ +1 ms] | |
[ ] | | environment:
[ ] | | sdk: ">=2.1.0 <3.0.0"
[ ] | | flutter: ">=1.10.0 <2.0.0"
[ +1 ms] | |
[ +11 ms] | | dependencies:
[ +2 ms] | | flutter:
[ +1 ms] | | sdk: flutter
[ ] | |
[ ] | | dev_dependencies:
[ +9 ms] | | flutter_test:
[ +2 ms] | | sdk: flutter
[ +1 ms] | |
[ ] | | # For information on the generic Dart part of this file, see the
[ ] | | # following page: https://www.dartlang.org/tools/pub/pubspec
[ ] | |
[ ] | | # The following section is specific to Flutter.
[ +1 ms] | | flutter:
[ +7 ms] | | # This section identifies this Flutter project as a plugin project.
[ +2 ms] | | # The androidPackage and pluginClass identifiers should not ordinarily
[ ] | | # be modified. They are used by the tooling to maintain consistency when
[ ] | | # adding or updating assets for this project.
[ ] | | plugin:
[ ] | | platforms:
[ ] | | android:
[ ] | | package: com.weilu.flutter.flutter_2d_amap
[ ] | | pluginClass: Flutter2dAmapPlugin
[ ] | | ios:
[ ] | | pluginClass: Flutter2dAmapPlugin
[ ] | Nothing output on stderr.
[ ] SLVR: Version solving took 0:00:04.884960 seconds.
[ ] | Tried 1 solutions.
[ +2 ms] FINE: Resolving dependencies finished (4.891s).
[ +6 ms] ERR : Error on line 2, column 29: Unexpected character.
[ +2 ms] | ╷
[ ] | 2 │ description: 高德2D地图æ’件
[ ] | │ ^
[ ] | ╵
[ ] FINE: Exception type: PubspecException
[ +3 ms] FINE: package:pub/src/pubspec.dart 537:7 new Pubspec.parse
[ ] | package:pub/src/source/git.dart 258:20 BoundGitSource._describeUncached
[ +8 ms] | ===== asynchronous gap ===========================
[ +1 ms] | dart:async Future.catchError
[ +1 ms] | package:pub/src/utils.dart 109:52 captureErrors.<fn>
[ ] | package:stack_trace Chain.capture
[ ] | package:pub/src/utils.dart 122:11 captureErrors
[ ] | package:pub/src/command_runner.dart 171:13 PubCommandRunner.runCommand
[ ] | dart:async _completeOnAsyncReturn
[ ] | package:pub/src/command_runner.dart PubCommandRunner._validatePlatform
[ ] | dart:async _completeOnAsyncReturn
[ ] | package:pub/src/io.dart runProcess.<fn>
[ +23 ms] Running "flutter pub get" in flutter_deer... (completed in 5.3s)
[ +4 ms] "flutter get" took 5,579ms.
pub get failed (65; | package:pub/src/io.dart runProcess.<fn>)
#0 throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1 _DefaultPub.batch (package:flutter_tools/src/dart/pub.dart:295:7)
#2 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#3 _rootRunUnary (dart:async/zone.dart:1134:38)
#4 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#5 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#6 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#7 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:524:5)
#9 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#10 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#11 _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#12 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#13 _rootRunUnary (dart:async/zone.dart:1134:38)
#14 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#15 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#16 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#17 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#18 Future._addListener.<anonymous closure> (dart:async/future_impl.dart:389:9)
#19 _rootRun (dart:async/zone.dart:1126:13)
#20 _CustomZone.run (dart:async/zone.dart:1023:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#22 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#25 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#26 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)
问题的原因找到了, 是高德地图插件的问题, 如果把地图插件注释掉就可以正常down其他的包了, 作者可以看一下日志, 另外我的flutter版本是v1.12.13+hotfix.6
@YeFei572 看是不是地图插件pubspec.yaml的description乱码造成的,你尝试删除description中的中文。
还有我看你的本地的地图插件git版本不对,你尝试删除它或者upgrade。
这个地图是你的个人仓库吧?你指的删除description中文是怎么操作呢,我可否直接用pub.dev上面的仓库?
建议删除flutter\.pub-cache\git
下的包重新下载。
我自己fork了一份地图仓库,把汉字改成了拼音就可以了。
虽然不知道什么问题,保证兼容性我还是修改一下吧。
运行环境
[x] 电脑系统:
Windows 10
[x] 设备系统版本:如
Android 9.0
[x] Flutter 版本:
v1.12.13+hotfix.6
具体问题描述
代码down下来直接安装依赖, 然后报错
问题截图
异常日志