Gsheets软件包未导入

时间:2020-11-02 16:57:41

标签: flutter google-sheets importerror

我正在尝试在flutter项目中使用gsheets,但是每次我尝试通过写import 'package:gsheets/ghsheets.dart';包来导入它时,该包都用红色下划线标出,并给我这个错误:

Error: Could not resolve the package 'gsheets' in 'package:gsheets/ghsheets.dart'. lib/main.dart:2:8: Error: Not found: 'package:gsheets/ghsheets.dart'import 'package:gsheets/ghsheets.dart'; ^Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Agsheets%2Fghsheets.dart; message=StandardFileSystem only supports file:* and data:* URIs) #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7) #1 asFileUri (package:vm/kernel_front_end.dart:657:37) #2 writeDepfile (package:vm/kernel_front_end.dart:825:21) <asynchronous suspension> #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:583:15) <asynchronous suspension> #4 _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:43:22) #5 starter (package:flutter_frontend_server/server.dart:180:27) #6 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:30) #7 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32) #8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

为什么会发生这种情况,我该如何解决? 谢谢!

0 个答案:

没有答案