Documentation Outdated: Flutter Now Uses Updated NDK Version
The Getting started documentation mentions the need to manually update the ndkVersion in the build.gradle file because Flutter defaults to an older NDK version 23.1.7779620, which is incompatible with objectbox_flutter_libs and path_provider_android.
However, as of https://github.com/flutter/flutter/blob/master/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy Flutter now uses NDK 26.3.11579264 by default. This makes the manual update of ndkVersion unnecessary for new Flutter versions.
Thanks for reporting!
It appears the relevant commit was shipped with Flutter 3.27.0.
We should
- verify removing this produces no warning or error when using the new Flutter SDK,
- update the note to mention this no longer required once using Flutter 3.27.0,
- add a note to the examples where this is used that it can be removed once only testing Flutter 3.27.0 or higher
(internal issue objectbox-dart#127)
Hi! I noticed this documentation issue and would like to contribute a fix. I'm new to open source contributions, so please let me know if this issue is still available to work on. Thanks!