Open xshiwei opened 1 year ago
@rsnay thanks -- I'm going to use it as well 🙏
And i'm hitting this too.... Thanx for sharing @rsnay!
@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
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
@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
Example of the error this causes:
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: