I am using Flutter to edit images such as crop and filter functionalities. I found this plugin https://pub.dev/packages/image_editor_pro
I get this error while installing this package and its dependencies.
Cannot open file, path = 'C:\flutter\.pub-cache\_temp\dir5ba449a4\test\fixtures\invalid\n_structure_<.>.json' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)
pub finished with exit code 66
I have tried everything based on previous answers related such as
flutter clean
flutter pub cache repair
Here is the pubspec.yaml
name: application_editing
description: A new Flutter project.
environment:
sdk: ">=2.7.0 <3.0.0"
flutter: ">=1.20.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
zoom_widget: ^0.1.3
font_awesome_flutter: ^9.0.0
image_picker: ^0.7.4
path_provider: ^2.0.1
permission_handler: ^7.0.0
dio: ^4.0.0
screenshot: ^0.3.0
signature: ^4.0.2
flutter_colorpicker: ^0.4.0
firexcode: ^1.0.5
flutter_web_plugins:
sdk: flutter
collection: ^1.15.0
dev_dependencies:
pedantic: ^1.9.2
flutter_test:
sdk: flutter
Also deleting pub cache folder. Nothing worked. The issue comes only when I install this image_editor_pro plugin. It is not the case with any other plugin.
I think it is because you have added the wrong package, or the image URL which you added in your assets doesn't exist.
Related
I want to give a local release of my app to some friends so I tried to send them the debug APK for them to run on their phones but when the APK installs and they try to launch it, it will go directly to settings or simply not open.
name: raydeo
description: A new Flutter project.
publish_to: "none"
version: 1.0.0+1
environment:
sdk: ">=2.17.6 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
bloc: ^7.1.0
equatable: ^2.0.3
google_fonts: ^3.0.1
http: ^0.13.5
shared_preferences: ^2.0.15
intl_phone_field: ^3.1.0
firebase_core: ^1.20.0
firebase_auth: ^3.6.2
otp_text_field: ^1.1.3
hive: ^2.2.3
hive_flutter: ^1.1.0
mqtt5_client: ^3.3.1
hive_generator: ^1.1.3
build_runner: ^2.2.0
flutter_bloc: ^7.3.3
firebase_dynamic_links: ^4.3.4
share_plus: ^4.0.10+1
dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.3.0
flutter_lints: ^2.0.0
flutter:
uses-material-design: true
This is the contents of my pubspec.yaml file. My flutter doctor is coming up clean. I am using an M1 mac. If anyone needs any other details please let me know.
i had same issue i closed and restarted the app after install. Then it worked.
this issue is debugged apk.
Try this
flutter build apk --release
if no sound
flutter build apk --release --no-sound-null-safety
Then find apk file. done!
My Flutter pubspec.yaml does not get the packages. This error show:
Error on line 30, column 22 of pubspec.yaml: Invalid version constraint: Expected version number after "^" in "^^4.2.1", got "^4.2.1".
╷
30 │ animated_text_kit: ^^4.2.1
│ ^^^^^^^
╵
pub get failed (65; ╵)
exit code 65
This is my dependencies:
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
animated_text_kit: ^4.2.1
cupertino_icons: ^1.0.3
audioplayers: ^0.16.1
dev_dependencies:
flutter_test:
sdk: flutter
I checked indentation, versions and so on.
What should i do?
Exit code 65 on pubspec.yaml indicates that the file is not well-formatted. You need to check the file again where is the problem or share the full yaml file so that I can check. Or try flutter clean and then flutter pub get in the terminal if you are confident about the formatting.
Try to below code and then run flutter pub get refer documentation here
dependencies:
flutter:
sdk: flutter
audioplayers: ^0.16.1
animated_text_kit: ^4.2.1
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.3
I have downloaded a flutter project and placed the lib, assets and pubsec.yaml files in a new project. After "flutter packages get" There are more than 1k+ error. this the error:
Because fluttermultigrocery depends on flutter_localizations any from sdk which depends
on intl 0.17.0-nullsafety.2, intl 0.17.0-nullsafety.2 is required.
So, because fluttermultigrocery depends on intl ^0.16.1, version solving failed.
pub get failed (1; So, because fluttermultigrocery depends on intl ^0.16.1, version solving failed.)
this are my pubsec.yaml dependencies:
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cupertino_icons: ^0.1.3
optimized_cached_image: ^0.1.15
cached_network_image: ^2.3.1
flutter_cache_manager: ^1.4.1 #for cached_network_image
http: ^0.12.2
provider: 4.3.2+2
connectivity: 0.4.9+2
dynamic_theme: ^1.0.1
sembast: ^2.4.7+6
path_provider: ^1.6.14
intl: ^0.16.1
shimmer: ^1.1.1
url_launcher: ^5.5.2
carousel_slider: 2.2.1
firebase_core: ^0.5.0
firebase_messaging: 7.0.0
dev_dependencies:
flutter_test:
sdk: flutter
#flutter_local_notifications:
Just remove the version in dependency which creates problem and it will work
like => firebase_core: (Don't specify version)
firebase_messaging: (Don't specify version)
getting error in pubspec.yaml i am not able to sort it out...pls help
CODE:
name: i_am_rich
description: A new Flutter application.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets :
- images/ diamond.png
Error:
C:\src\flutter\flutter\bin\flutter.bat --no-color pub get
Error detected in pubspec.yaml:
Error on line 18, column 15: Mapping values are not allowed here. Did you miss a colon earlier?
╷
18 │ assets :
│ ^
╵
Please correct the pubspec.yaml file at C:\Users\BHASKAR\Documents\appdev\i_am_rich\i_am_rich\pubspec.yaml
Process finished with exit code 1
You have unnecessary spaces between assets and : here:
assets :
it should be
assets:
I downloaded project from github and tried to run the project but it requires Get Dependencies and when I press Pub Get to for dependencies I receive the following error:
Because every version of flutter_test from sdk depends on path 1.7.0 and fstore depends on
path 1.6.4, flutter_test from sdk is forbidden.
So, because fstore depends on flutter_test any from sdk, version solving failed.
pub get failed (1; So, because fstore depends on flutter_test any from sdk, version solving
failed.)
Here is pubsbec.yaml file:
name: fstore
description: Mobile commerce app by Flutter
version: 1.6.5+33
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
logs:
git: https://github.com/pq/logs
flutter:
sdk: flutter
http: 0.12.0+4
html_unescape: 1.0.1+3
provider: 4.0.4
after_layout: 1.0.7+2
font_awesome_flutter: 8.7.0
path: 1.6.4
vector_math: 2.0.8
carousel_pro: 1.0.0
flutter_widget_from_html: 0.3.2+1
configurable_expansion_tile: 1.0.0
timeago: 2.0.26
share: 0.6.3+6
validate: 1.7.0
country_pickers: 1.2.0
shared_preferences: 0.5.6+3
firebase_messaging: 6.0.12
firebase_analytics: 5.0.11
transparent_image: 1.0.0
pull_to_refresh: 1.5.8
localstorage: 3.0.1+4
notification_permissions: 0.4.4
flare_splash_screen: 3.0.1
rate_my_app: 0.6.0+2
page_indicator: 0.3.0
extended_image: 0.7.1
intro_slider: 2.2.9
url_launcher: 5.4.2
firebase_core: 0.4.4 # keep these version as there is new issue
firebase_auth: 0.15.3 # with the latest firebase https://github.com/FirebaseExtended/flutterfire/issues/2084
flutter_webview_plugin: 0.3.10+1
connectivity: 0.4.8+2
random_string: 2.0.1
google_maps_flutter: 0.5.24+1
place_picker: 0.9.11
cached_network_image: 2.0.0
image_picker: 0.6.3+4
uuid: 2.0.4
uni_links: 0.2.0
flutter_staggered_grid_view: 0.3.0
device_apps: 1.0.9
auto_size_text: 2.1.0
flutter_swiper: 1.1.6
flutter_widgets: 0.1.12
video_player: 0.10.8+1
flutter_spinkit: 4.1.2
percent_indicator: 2.1.1+1
animated_text_kit: 2.0.0
wave: 0.0.8
http_auth: 0.2.9
firebase_admob: 0.9.1
facebook_audience_network: 0.5.0
pin_code_fields: 2.4.0
flutter_facebook_login: 3.0.0
webview_flutter: 0.3.19+9
rubber: 0.4.0
flutter_localizations:
sdk: flutter
custom_splash: 0.0.2
apple_sign_in: 0.1.0
google_sign_in: 4.1.4
google_fonts: 0.3.10
flutter_statusbarcolor: 0.2.3
app_settings: 3.0.1
razorpay_flutter: 1.1.2
animated_splash: 1.0.0
firebase_database: 3.1.3
event_bus: 1.1.1
country_code_picker: 1.3.6
flutter_typeahead: 1.8.0
flash: 1.2.3
dev_dependencies:
flutter_launcher_icons: 0.7.4
flutter_test:
sdk: flutter
pedantic: 1.8.0+1 # Analysis
I tried already flutter upgrade but it did not work, is there any solution for this problem because
I have found the solution to this problem, you can use both versions of the path dependency through override_dependency, which will satisfy the requirnments.
Try Following solution:
dependencies:
flutter:
sdk: flutter
dio: ^3.0.9
hive_flutter: ^0.3.0+2
hive: ^1.4.1+1
path: ^1.7.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
dependency_overrides:
path: ^1.6.4
dev_dependencies:
flutter_test:
sdk: flutter
hive_generator: ^0.7.0+2
build_runner: ^1.10.0
You can also just simply replace 1.7.0 with 1.6.4 as the error says.