URI的目标不存在:'包:geoflutterfire/geoflutterfire,双标[

thtygnil  于 2023-05-01  发布在  Flutter
关注(0)|答案(1)|浏览(147)

此问题已在此处有答案

Target of URI doesn't exist 'package:flutter/material.dart'(11个回答)
5天前关闭。
此帖子5天前编辑并提交审核,未能重新打开帖子:

需要细节或清晰度通过editing this post添加细节并澄清问题。

x1c 0d1x我无法成功导入这两个包在我的flutter应用程序,我使用Android Studio.我收到这些消息错误::

URI的目标不存在:****'package:geoflutterfire/geoflutterfire.dart'.
URI的目标不存在:****'包:cloud_firestore/cloud_firestore。dart'.

这就是我如何编辑我的pubspec。yamlfile:::

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.2
  location: ^4.4.0
  geolocator: ^9.0.2
  geocoding: ^2.1.0
  permission_handler: ^8.0.0+1
  firebase_core: ^2.10.0
  firebase_database: ^10.1.0
  cloud_firestore_platform_interface: ^5.12.0
  cloud_firestore_web: ^3.4.0
  collection: ^1.0.0
  meta: ^1.3.0
  geoflutterfire: 3.0.3
  cloud_firestore: ^3.1.6

之后,我执行了命令:flutter pub get.

相关问题