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
Having to flutter build apk to get gradle dependencies is problematic #628
After updating the version of package:jni, some of the previously written generated code naturally became incorrect. Regenerating the code using JNIgen prompts you to run flutter build apk but flutter build apk needs all Dart code to be valid to succeed.
One could technically first build the apk and only then update the package:jni version but in general it's annoying to be fully building an app just to get the gradle dependencies.
Instead we can use an isolated command that only fetches the dependencies and mention that in our documentation intead of flutter build apk.
Eliminating the need to run flutter build apk would be a huge usability improvement. But it sounds like it will require a level of gradle expertise I don't have. If any external contributors know enough about gradle to be able to fetch the deps without a full build, please chime in.
Activity
mahesh-hegde commentedon Jun 1, 2023
The problem is that, to do all this we need some knowledge of gradle which takes a week of study.
Further complicating matters AGP (android gradle plugin) is a different kind of beast than standard java gradle project.
In case of maven, it was 1 command, haha.
I won't be getting sufficient time to focus on coding anytime soon. You might want to check with someone at Google who already knows AGP pretty well.
HosseinYousefi commentedon Jun 1, 2023
No worries, was just letting you know because you worked on the gradle stuff.
It's not a pressing issue, but still useful to solve. Will ask around!
mahesh-hegde commentedon Jun 28, 2023
Gradle plugins will usually require you to add a line like this in
build.gradleIf that's fine, we can probably implement a plugin, which is more reliable than editing build scripts in place..
[ffigen] Bump coverallsapp/github-action from 2.2.1 to 2.2.3 (dart-la…
liamappelbe commentedon Feb 3, 2026
Eliminating the need to run
flutter build apkwould be a huge usability improvement. But it sounds like it will require a level of gradle expertise I don't have. If any external contributors know enough about gradle to be able to fetch the deps without a full build, please chime in.liamappelbe commentedon Feb 10, 2026
cc @jwill