receive_sharing_intent icon indicating copy to clipboard operation
receive_sharing_intent copied to clipboard

I tried your example with errors when I run "flutter run --debug", please advise. thanks.

Open eliranwong opened this issue 4 years ago • 5 comments

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.

eliranwong avatar Jan 10 '21 18:01 eliranwong

can anyone help. the package looks promising, but practically unsuable. I appreciate if someone at least give me some tips. thanks

eliranwong avatar Jan 22 '21 19:01 eliranwong

The error occurs with compileSdkVersion 30. If I put 29 again, in build.gradle, it works fine.

francigueco avatar Jan 23 '21 14:01 francigueco

compileSdkVersion 30

Thanks a lot for reply. Will the package support compileSdkVersion 30 in the future?

eliranwong avatar Jan 23 '21 15:01 eliranwong

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

LazyDave76 avatar Feb 04 '21 06:02 LazyDave76

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.

eliranwong avatar Feb 04 '21 07:02 eliranwong