Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with share_plus #234

Open
mustafa-fahimi opened this issue May 21, 2024 · 2 comments
Open

Problem with share_plus #234

mustafa-fahimi opened this issue May 21, 2024 · 2 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file work_in_progress Сurrently under work

Comments

@mustafa-fahimi
Copy link

I get below error when trying to build the project:
Windows 11
Flutter SDK: 3.19.6
talker_flutter version: 4.2.0

../../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/share_plus-9.0.0/lib/src/share_plus_windows.dart:9:8: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/url_launcher_windows-3.1.1/lib/url_launcher_windows.dart': The system cannot find the path specified.

import 'package:url_launcher_windows/url_launcher_windows.dart';
       ^
../../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/share_plus-9.0.0/lib/src/share_plus_windows.dart:22:55: Error: Method not found: 'UrlLauncherWindows'.
      SharePlatform.instance = SharePlusWindowsPlugin(UrlLauncherWindows());
                                                      ^^^^^^^^^^^^^^^^^^
@mustafa-fahimi mustafa-fahimi changed the title Problem with share_plus in windows Problem with share_plus May 21, 2024
@Frezyx Frezyx added bug Something isn't working dependencies Pull requests that update a dependency file work_in_progress Сurrently under work labels May 23, 2024
@simplenotezy
Copy link

I have the same errors. It's a bit odd that a logging package will pull in share_plus - and I would probably consider not doing this.

@david-legend
Copy link

if you're facing this error on codemagic - Here's a fix

Inside code magic, create a new env variable called JAVA_HOME and assign this value /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home

note you can choose any version of java from this list

https://docs.codemagic.io/specs/versions-macos/

In this particular example it requires Java 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file work_in_progress Сurrently under work
Projects
None yet
Development

No branches or pull requests

4 participants