简体   繁体   English

我正在尝试使用带有map_view:“ ^ 0.0.10”抖动的Google地图,但出现错误

[英]I am trying to use google maps with flutter with map_view: “^0.0.10” but I get an error

I am making a project that involves flutter and google maps intergration but unfortunately I am not able to do it because whenever I try to use the package map_view: "^0.0.10" in pubspec.yaml it is not getting installed. 我正在制作一个涉及Flutter和Google Maps集成的项目,但是不幸的是,我无法做到这一点,因为每当我尝试在pubspec.yaml中使用map_view:“ ^ 0.0.10”软件包时,都不会安装。 I am getting an error saying 我说错了

Package uri has no versions that match >=0.11.1 <0.12.0 derived from: - map_view 0.0.10 depends on version ^0.11.1 pub get failed (1) exit code 1 软件包uri没有与> = 0.11.1 <0.12.0匹配的版本,派生自:-map_view 0.0.10取决于版本^ 0.11.1 pub获取失败(1)退出代码1

I tried to find the fix but not able to I even installed uri but it also did not fix it. 我试图找到修复程序,但我什至无法安装uri,但它也没有修复它。

enter image description here 在此处输入图片说明

It's an open issue. 这是一个公开的问题。

map_view package depens on uri package version 0.11.1 that fails to install at the date of this answer: map_view软件包依赖于在此回答之日无法安装的uri软件包版本0.11.1

Accordint to this: https://github.com/google/uri.dart/pull/28 there is some conflict with flutter test dev SDK. 遵循此规定: https : //github.com/google/uri.dart/pull/28与flutter测试开发SDK冲突。

So if you wanna give it a try you could comment this lines: 因此,如果您想尝试一下,可以注释以下行:

#dev_dependencies:
  #flutter_test:
    #sdk: flutter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM