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.
cc/ @mahesh-hegde
After updating the version of
package:jni, some of the previously written generated code naturally became incorrect. Regenerating the code usingJNIgenprompts you to runflutter build apkbutflutter build apkneeds all Dart code to be valid to succeed.One could technically first build the apk and only then update the
package:jniversion 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.cc/ @mahesh-hegde