KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
325 stars 372 forks source link

The build gradle version needs to be upgraded #256

Open xshiwei opened 1 year ago

rsnay commented 1 year ago

Example of the error this causes:

FAILURE: Build failed with an exception.

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':receive_sharing_intent' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31

There is an open PR that should resolve this: https://github.com/KasemJaffer/receive_sharing_intent/pull/255

Workaround: I switched to that fork in my app's pubspec.yaml, which resolved the issue:

  # Switch back to regular package once https://github.com/KasemJaffer/receive_sharing_intent/issues/256 is resolved
  receive_sharing_intent:
    git:
      url: https://github.com/AyushmanG26/receive_sharing_intent.git
      ref: abedc3d6d5b80df396e9c300fd1a052cbab08827
filippkowalski commented 1 year ago

@rsnay thanks -- I'm going to use it as well 🙏

markg85 commented 1 year ago

And i'm hitting this too.... Thanx for sharing @rsnay!

gerken-tss commented 7 months ago

@rsnay thanks a lot Your workaround has made my builds work for several months now. However, since I have upgrade the Gradle version in my main project, I am unable to build my app because:

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).

Since this project does not seem to be updated anymore, could you possibly update your fork?

[edit] Nvm, I switched to https://pub.dev/packages/flutter_sharing_intent which is still being properly maintained

calcitem commented 3 months ago
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':receive_sharing_intent:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain