Open RajatDBazaar opened 3 days ago
When using this library in a new project, add it to pubspac.yaml file we got this error
name: test_
description: "A new Flutter project."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
environment:
sdk: ^3.7.0-69.0.dev
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
vector_math: ^2.1.4
win32: 5.5.1
web: 1.0.0
thermion_flutter: ^0.2.1-dev.11
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^5.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/to/asset-from-package
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package
ArgumentError: Invalid argument(s): Illegal character in path
#0 _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1841:11)
#1 _Uri._makeWindowsFileUrl (dart:core/uri.dart:1935:7)
#2 new _Uri.file (dart:core/uri.dart:1808:11)
#3 NativeAssetsBuildRunner._compileHookForPackageCached.<anonymous closure> (package:native_assets_builder/src/build_runner/build_runner.dart:689:27)
#4 MappedListIterable.elementAt (dart:_internal/iterable.dart:435:31)
#5 ListIterator.moveNext (dart:_internal/iterable.dart:364:26)
#6 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#7 new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#8 new List.of (dart:core-patch/array_patch.dart:39:18)
#9 ListIterable.toList (dart:_internal/iterable.dart:224:7)
#10 NativeAssetsBuildRunner._compileHookForPackageCached (package:native_assets_builder/src/build_runner/build_runner.dart:690:12)
<asynchronous suspension>
#11 NativeAssetsBuildRunner._runDryRun (package:native_assets_builder/src/build_runner/build_runner.dart:420:11)
<asynchronous suspension>
#12 _runDartDryRunBuild (package:flutter_tools/src/isolated/native_assets/native_assets.dart:783:41)
<asynchronous suspension>
#13 runFlutterSpecificDartDryRunOnPlatforms (package:flutter_tools/src/isolated/native_assets/native_assets.dart:160:36)
<asynchronous suspension>
#14 HotRunner.run (package:flutter_tools/src/run_hot.dart:372:26)
<asynchronous suspension>
#15 AppDomain.launch.<anonymous closure> (package:flutter_tools/src/commands/daemon.dart:809:9)
<asynchronous suspension>
#16 AppDomain.launch (package:flutter_tools/src/commands/daemon.dart:807:5)
<asynchronous suspension>
#17 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:758:15)
<asynchronous suspension>
#18 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#19 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#20 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#21 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#22 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#23 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#24 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#25 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#26 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
[✓] Flutter (Channel master, 3.27.0-1.0.pre.255, on Microsoft Windows [Version 10.0.22631.4391], locale en-IN)
• Flutter version 3.27.0-1.0.pre.255 on channel master at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5a11904383 (18 hours ago), 2024-10-26 08:44:53 -0700
• Engine revision c9b8ac96f6
• Dart version 3.7.0 (build 3.7.0-69.0.dev)
• DevTools version 2.40.1
[✓] Windows Version (11 Home Single Language 64-bit, 23H2, 2009)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at C:\Users\rajat\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
• 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 Build Tools 2019 16.11.16)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.32602.291
✗ The current Visual Studio installation is incomplete.
Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.
[✓] Android Studio (version 2024.2)
• Android Studio at C:\Program Files\Android\Android Studio1
• 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
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
[✓] IntelliJ IDEA Community Edition (version 2021.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.3
• 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
[✓] VS Code (version 1.94.2)
• VS Code at C:\Users\rajat\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.98.0
[✓] Connected device (4 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4391]
• Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.70
• Edge (web) • edge • web-javascript • Microsoft Edge 129.0.2792.65
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Is this building for Android on Windows?
Yes!
When running the sample project of camera_manipulation our build got failed, we are stuck in this issue from past two days please help us so that we can able to use this library
Errors
Flutter Doctor