[Flutter] \macos\Classes\FlutterBluePlugin.h' (OS Error: The client does not hav
\macos\Classes\FlutterBluePlugin.h' (OS Error: The client does not have the required privileges. |
Problem: flutter_blue has installation problem in windows.
Solution 2: It is working well. (I'm using this solution)
1. download flutter_blue from git (https://github.com/pauldemarco/flutter_blue)
2. move flutter_blue to [your flutter sdk folder]\flutter\.pub-cache\hosted folder.
3. change name flutter_blue -> flutter_blue-0.8.0
4. done
Solution 1: it's just first found out solution. unfortunately it just can avoid ONLY get pub error.(FAILED)
1. flutter pub get
==> error will be occurred.
[your flutter sdk folder]\flutter\.pub-cache\_temp\dir7d36fb45\macos\Classes\FlutterBluePlugin.h' (OS Error: 지정된 파일을 찾을 수 없습니다. , errno = 2) |
2. copy dir7d36fb45 to [your flutter sdk folder]\flutter\.pub-cache\hosted\pub.dartlang.org
3. change name dir7d36fb45 to flutter_blue-0.8.0
4. cd flutter_blue-0.8.0 (created by you)
5. create pubspec.yaml in flutter_blue-0.8.0 folder
6. fill below content in pubspec.yaml
name: flutter_blue
description:
Flutter plugin for connecting and communicating with Bluetooth Low Energy devices,
on Android and iOS
version: 0.8.0
homepage: https://github.com/pauldemarco/flutter_blue
environment:
sdk: '>=2.12.0 <3.0.0'
flutter: ">=1.12.13+hotfix.6"
dependencies:
flutter:
sdk: flutter
convert: ^3.0.0
protobuf: ^2.0.0
rxdart: ^0.26.0
collection: ^1.15.0
meta: ^1.3.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
plugin:
platforms:
android:
package: com.pauldemarco.flutter_blue
pluginClass: FlutterBluePlugin
ios:
pluginClass: FlutterBluePlugin
macos:
pluginClass: FlutterBluePlugin
7. now you have done preparing flutter_blue cache :)
8. lets do flutter pub get !!
maybe it will be worked.
I know it is a temporary solution. but I believe it will help you understand how to work pub get..
If you need new pubspec.yaml ,
you can find out in here : https://github.com/pauldemarco/flutter_blue/blob/master/pubspec.yaml