Open kanntim opened 1 year ago
@kanntim Thank you for reporting this. I believe the problem with Windows is that mkdir -p
is not supported. I will leave this issue open to be fixed in the future. However, for now, the library will only support Linux and macOS hosts.
It may be possible to run a build on Windows if using the WLS but I have not tried this.
@kanntim You might try the Windows code in this PR: https://github.com/peercoin/coinlib/pull/25
It may work for you!
Oh,
Error: Dart library 'dart:ui' is not available on this platform.
import 'dart:ui';
indicates you are trying to flutter run
on the commandline... for the commandline. I also have this issue with Flutter plugins that don't support being run on the commandline--only on platforms. Basically: try flutter run -d windows
@kanntim
also try version 2.0!
Hi! I am trying to use coinlib_flutter: ^1.0.0-cs.1 to Flutter, but I get the following error:
Flutter doctor -v
PS D:\AndroidStudio_Projects\test_ln> Flutter doctor -v [√] Flutter (Channel stable, 3.13.2, on Microsoft Windows [Version 10.0.22621.2134], locale en-150) • Flutter version 3.13.2 on channel stable at C:\Users\kannt_im\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ff5b5b5fa6 (10 days ago), 2023-08-24 08:12:28 -0500 • Engine revision b20183e040 • Dart version 3.1.0 • DevTools version 2.25.0
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at C:\Users\kannt_im\AppData\Local\Android\Sdk • Platform android-33, build-tools 33.0.1 • Java binary at: C:\Users\kannt_im\AppData\Local\Programs\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.3) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.4.33205.214 • Windows 10 SDK version 10.0.22000.0
[√] Android Studio (version 2022.3) • Android Studio at C:\Users\kannt_im\AppData\Local\Programs\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • android-studio-dir = C:\Users\kannt_im\AppData\Local\Programs\Android Studio • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
[√] VS Code (version 1.81.0) • VS Code at C:\Users\kannt_im\AppData\Local\Programs\Microsoft VS Code • Flutter extension can be installed from: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.2134] • Chrome (web) • chrome • web-javascript • Google Chrome 115.0.5790.171 • Edge (web) • edge • web-javascript • Microsoft Edge 116.0.1938.69
[√] Network resources • All expected network resources are available.
I've tried Repair IDEA, Flutter clear, Flutter upgrade, Invalidate Cache, but none of it works
The following error also appears:
/C:/Users/kannt_im/flutter/packages/flutter/lib/src/foundation/binding.dart:9:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' as ui show Brightness, PlatformDispatcher, SingletonFlutterWindow, window; // ignore: deprecated_member_use ^ Context: The unavailable library 'dart:ui' is imported through these packages:
Detailed import paths for (some of) the these imports:
/C:/Users/kannt_im/flutter/packages/flutter/lib/src/foundation/binding.dart:25:1: Error: Dart library 'dart:ui' is not available on this platform. export 'dart:ui' show PlatformDispatcher, SingletonFlutterWindow; // ignore: deprecated_member_use ^ /C:/Users/kannt_im/flutter/packages/flutter/lib/src/foundation/change_notifier.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' show VoidCallback; ^ /C:/Users/kannt_im/flutter/packages/flutter/lib/src/foundation/change_notifier.dart:13:1: Error: Dart library 'dart:ui' is not available on this platform. export 'dart:ui' show VoidCallback; ^ /C:/Users/kannt_im/flutter/packages/flutter/lib/src/foundation/debug.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' as ui show Brightness; ^ /C:/Users/kannt_im/flutter/packages/flutter/lib/src/foundation/debug.dart:11:1: Error: Dart library 'dart:ui' is not available on this platform. export 'dart:ui' show Brightness; ^ /C:/Users/kannt_im/flutter/packages/flutter/lib/src/foundation/memory_allocations.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' as ui; ^ /C:/Users/kannt_im/flutter/packages/flutter/lib/src/widgets/app.dart:35:1: Error: Dart library 'dart:ui' is not available on this platform. export 'dart:ui' show Locale; ^ /C:/Users/kannt_im/flutter/packages/flutter/lib/src/widgets/app_lifecycle_listener.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui';