-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Platform
+9
Plugin
share_plus
Version
7.1.0
Flutter SDK
3.10.6
Steps to reproduce
as I always I just add share_plus with command of flutter pub add share_plus
then I use the share x file function like this
then I try to run the app for firs time without testing the functionality I got this error
Code Sample
await screenshotController
.captureFromWidget(storyWidget)
.then((bites) async {
String tempDir = (await getTemporaryDirectory()).path;
File imageFile =
File('$tempDir/${DateTime.now().microsecondsSinceEpoch}.png');
imageFile.createSync();
_imagePath = imageFile.path;
log(imageFile.path);
}).then((value) async {
final result = await Share.shareXFiles([XFile(_imagePath)],text: 'Install ravin to read your own quotes');
});```Logs
Duplicate class kotlin.text.jdk8.RegexExtensionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.10 (org.jetbrains.kotlin:kotlin-stdlib:1.8.10) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Duplicate class kotlin.time.jdk8.DurationConversionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.10 (org.jetbrains.kotlin:kotlin-stdlib:1.8.10) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 17sFlutter Doctor
╭─abolfazl@abolfazl ~
╰─$ flutter doctor -v
[✓] Flutter (Channel stable, 3.10.6, on Ubuntu 22.04.2 LTS 5.19.0-50-generic,
locale en_US.UTF-8)
• Flutter version 3.10.6 on channel stable at
/home/abolfazl/dev/flutter_linux_3.7.8-stable/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f468f3366c (3 weeks ago), 2023-07-12 15:19:05 -0700
• Engine revision cdbeda788a
• Dart version 3.0.6
• DevTools version 2.23.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at /home/abolfazl/Android/Sdk
• Platform android-33-ext5, build-tools 33.0.2
• Java binary at:
/home/abolfazl/dev/android-studio-2022.1.1.21-linux(2)/android-studio/jbr/
bin/java
• Java version OpenJDK Runtime Environment (build
11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 14.0.0-1ubuntu1.1
• cmake version 3.22.1
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2022.1)
• Android Studio at
/home/abolfazl/dev/android-studio-2022.1.1.21-linux(2)/android-studio
• Flutter plugin version 72.1.2
• Dart plugin version 221.6103.1
• Java version OpenJDK Runtime Environment (build
11.0.15+0-b2043.56-8887301)
[✓] VS Code (version 1.80.2)
• VS Code at /usr/share/code
• Flutter extension version 3.70.0
[✓] Connected device (3 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API
30) (emulator)
• Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.2
LTS 5.19.0-50-generic
• Chrome (web) • chrome • web-javascript • Google Chrome
115.0.5790.110
[✓] Network resources
• All expected network resources are available.
• No issues found!Checklist before submitting a bug
- I Google'd a solution and I couldn't find it
- I searched on StackOverflow for a solution and I couldn't find it
- I read the README.md file of the plugin
- I'm using the latest version of the plugin
- All dependencies are up to date with
flutter pub upgrade - I did a
flutter clean - I tried running the example project
TogayHanKaya, duytq94, koraybalci and mikiyasET