receive_sharing_intent
receive_sharing_intent copied to clipboard
I tried your example with errors when I run "flutter run --debug", please advise. thanks.
I tried your package and your example, but receive the following error when I run "flutter run --debug", please advise. thanks.
e: C:\Users\elira\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\receive_sharing_intent-1.4.2\android\src\main\kotlin\com\kasem\receive_sharing_intent\Receiv eSharingIntentPlugin.kt: (146, 78): Type mismatch: inferred type is Uri? but Uri was expected e: C:\Users\elira\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\receive_sharing_intent-1.4.2\android\src\main\kotlin\com\kasem\receive_sharing_intent\Receiv eSharingIntentPlugin.kt: (207, 95): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':receive_sharing_intent:compileDebugKotlin'.
Compilation error. See log for more details
- 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.
can anyone help. the package looks promising, but practically unsuable. I appreciate if someone at least give me some tips. thanks
The error occurs with compileSdkVersion 30. If I put 29 again, in build.gradle, it works fine.
compileSdkVersion 30
Thanks a lot for reply. Will the package support compileSdkVersion 30 in the future?
i've fired in a PR to try and fix this issue (https://github.com/KasemJaffer/receive_sharing_intent/pull/137)
try adding this to your pubspec.yaml file...
receive_sharing_intent:
git:
url: https://github.com/LazyDave76/receive_sharing_intent.git
ref: 7ec782f
i've fired in a PR to try and fix this issue (#137)
try adding this to your pubspec.yaml file...
receive_sharing_intent: git: url: https://github.com/LazyDave76/receive_sharing_intent.git ref: 7ec782f
Thanks for the fix.