Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The build gradle version needs to be upgraded #256

Open
xshiwei opened this issue May 16, 2023 · 6 comments
Open

The build gradle version needs to be upgraded #256

xshiwei opened this issue May 16, 2023 · 6 comments

Comments

@xshiwei
Copy link

xshiwei commented May 16, 2023

No description provided.

@rsnay
Copy link

rsnay commented May 27, 2023

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: #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
Copy link

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

@markg85
Copy link

markg85 commented Jul 30, 2023

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

@gerken-tss
Copy link

gerken-tss commented Jan 22, 2024

@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
Copy link

calcitem commented May 3, 2024

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

@gerken-tss
Copy link

@KasemJaffer

Any chance this might be fixed? I would love to go back to using this instead of https://pub.dev/packages/flutter_sharing_intent, but there is no way I can do this without Android support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants