Closed gregertw closed 1 year ago
This is most likely a configuration issue with sourceCompatibility and targetCompatibility on your end. Try changing these values :)
Thanks for quick response! I don't set these explicitly on my side. I also use the default flutter ext.kotlin_version = '1.6.10' while I see you have bumped to 1.7.10. I have tried to bump both kotlin_version and set compatibility as your plugin without any change, but I don't think it's a good idea to make that a requirement to use the plugin (or at least should be documented). Here's the code https://github.com/gregertw/actingweb_firstapp/tree/beta_channel if you want to have a look.
Well, any version of Kotlin will be a requirement anyways since the android part of flutter_web_auth_2
is written in Kotlin.
And I want to always target the newest version of everything that's available, because that is what most users would want.
Alas, I do not have the same issue as you and I am not at home until the start of October. So, until then I am not able to help you in that regard.
As soon as I have any updates on this, I will let you know :)
I just looked at your repo and saw something that might fix some errors: You are still using jcenter
which has been deprecated more than a year ago and is not available anymore since a few months ago.
Please try changing jcenter
to mavenCentral
in all build.gradle
files and try again :)
Nice catch, thanks! However, it did no difference. Unfortunately, reusing the compatibility and kotlin_version from your build.gradle didn't fix the problem. Also, I'm not comfortable deviating from flutter standard config to make one plugin dependency work.
I will then need to use the pre-3.0.0 version of oauth2_client that depends on flutter_web_auth. Would appreciate if you look at it when you have the chance. Of course, this could also be something related to oauth2_client, but I'm not sure how to debug that.
Okay, one last try without me trying anything out myself: https://stackoverflow.com/a/73349774/5894824 I also had something like that in mind. If that also does not help, I will reopen this issue and try to fix it myself in the beginning of October :)
Hi, I finally managed to resolve this thanks to the latest post you shared, thanks! By upgrading to gradle 7.1.2 (which included cleaning cache, I managed to keep the 1.6.10 official kotlin version on the top-level build.gradle, but still make oauth2_client load flutter_web_auth2. You can see the result at https://github.com/gregertw/actingweb_firstapp/tree/beta_channel Thanks for the help!
Alright, good to know for other people that might have the same issue, thanks for reporting back! :)
Description
When upgrading oauth2_client to 3.0.0 that introduces use of flutter_web_auth_2, I get a build error that looks related to making the plugin dependant on kotlin-gradle-plugin 1.7.10: