receive_sharing_intent icon indicating copy to clipboard operation
receive_sharing_intent copied to clipboard

[Android] Compilation errors in library

Open yevyevyev opened this issue 4 years ago • 3 comments

receive_sharing_intent-1.4.2/android/src/main/kotlin/com/kasem/receive_sharing_intent/ReceiveSharingIntentPlugin.kt: (146, 78): Type mismatch: inferred type is Uri? but Uri was expected
receive_sharing_intent-1.4.2/android/src/main/kotlin/com/kasem/receive_sharing_intent/ReceiveSharingIntentPlugin.kt: (207, 95): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?

yevyevyev avatar Jan 20 '21 18:01 yevyevyev

Same problem with 1.4.3 version :(

francigueco avatar Jan 22 '21 17:01 francigueco

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

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 03 '21 08:02 LazyDave76