-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Flutter Module might not compile if they depend on a plugin which uses old kotlin version #100613
Comments
Thanks for the report. I do see same behavior upon creating a new project and then following steps to replicate as mentioned. On latest stable and master, I get below error after running
While on stable 2.8.1, the command runs properly and generates aar as below:
stable, master flutter doctor -v
Labeling it as regression, since on 2.8.1 it works but not on latest (2.10.3). stable, master flutter doctor -v
|
/cc @blasten |
The tool should maybe say something more actionable here? @dcharkes is there something here you want to keep track of in webcrypto? |
Hello. I am having an issue with my Add-to-App project blocking flutter upgrades. I am trying to start supporting Flutter 2.10 (M3 support, etc.). |
cc @jonasfj can we update the Kotlin version in package:webcrypto? In general, how do we deal with Kotlin versions in Flutter plugins? (For the SDK and NDK version we have special support for checking versions and reporting errors in Flutter plugins, but that doesn't seem to be the case for the Kotlin version.) |
Filed google/webcrypto.dart#29, feel free to leave a link in the issue about any details for how to do this. I'm usually patching things by copy/pasting things from a clean template into my old project, and hoping that don't blow up anything. |
#101315 fixes this issue. I think the right thing to do is to keep the Kotlin version up to date with the latest; similar to how it's handled in full apps. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter channel stable; flutter upgrade;
flutter create -t module --org com.example .
flutter build aar
-> OKflutter pub add webcrypto
flutter build aar
-> FailIf you need minimum project, check my sample.
This problem occurs in flutter 2.10.3, but not in flutter 2.8.1.
ref #95141
ref https://github.com/google/webcrypto.dart/blob/d69568d22691141d1ae43251e1e8c6d2a0a89912/android/build.gradle#L5
Expected results:
Success
flutter create aar
.Actual results:
Failed
flutter create aar
.Code sample
Logs
The text was updated successfully, but these errors were encountered: