You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plugin_test_android_variants builder fails when jni is migrated to built-in kotlin #190084
changed the title [-]`plugin_test_android_variants` fails when jni is migrated to built-in kotlin[/-][+]`plugin_test_android_variants` builder fails when jni is migrated to built-in kotlin[/+]on Jul 27, 2026
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 flutter doctor -v and a minimal reproduction of the issue.
Activity
jmagman commentedon Jul 27, 2026
Failure happening on multiple tests, but the common logs are related to jni package and
Could not find method kotlin() for arguments:CodeDoctorDE commentedon Jul 27, 2026
I also had this problem which happens when migrating to agb like on the flutter docs: https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors#support-flutter-versions-earlier-than-3-44 (select groovy). I can't say it for sure but i think the kotlin dsl hadnt this problem.
I fixed it like this: https://github.com/LinwoodDev/Butterfly/blob/b4c5e18b3b2d5fff9540f8380207f8e94cd26b56/app/android/build.gradle.kts#L23
[-]`plugin_test_android_variants` fails when jni is migrated to built-in kotlin[/-][+]`plugin_test_android_variants` builder fails when jni is migrated to built-in kotlin[/+]github-actions commentedon Aug 11, 2026
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
flutter doctor -vand a minimal reproduction of the issue.