Lots of errors when trying to run flutter_blue_plus example

I get a lot of Gradle errors such as:
/C:/Users/doug/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.1/lib/src/helpers/http.dart:252:62: Error: The method ‘jsify’ isn’t defined for the type ‘Object’.

  • ‘Object’ is from ‘dart:core’.
    Try correcting the name to the name of an existing method, or defining a method named ‘jsify’.
    xhr.send(sendData is String ? sendData.toJS : sendData.jsify());

and
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ajs_interop; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:45)
#1 asFileUri (package:vm/kernel_front_end.dart:1008)
#2 writeDepfile (package:vm/kernel_front_end.dart:1171)

#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:738)

#4 starter (package:frontend_server/starter.dart:102)

#5 main (file:///C:/b/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13)

Thanks, DougB
^^^^^

OK, found the fix: In the pubspec.yaml file change the line ‘path: ../’ with the line ‘^2.0.2’, then flutter clean, flutter pub get, and Bob’s your uncle.

1 Like