Replies: 4 comments 2 replies
-
This is something that should be spelled out in the documentation. In fact, I think the current documentation has a lot of room for improvement. A lot of details are missing for newbies. For example, how to access the library from scratch in a project, the role of each file in the native directory, and things like dynamic libraries being automatically packaged into the project. |
Beta Was this translation helpful? Give feedback.
-
There was a guide about NDK version before, but since Flutter SDK automatically installs Android NDK by default for FFI plugins like this, there was no need for people to manually install Android NDK. Perhaps we should lower the NDK version though. I'm not sure if we can use the default NDK version of Flutter, though. For other parts, yes I agree that docs can be more detailed. It should be filled out in near future versions. If you have any detailed suggestions for the content, please feel free to leave a PR :) |
Beta Was this translation helpful? Give feedback.
-
Or if you had some issues with NDK installation, please let me know! |
Beta Was this translation helpful? Give feedback.
-
I translated the doc and submitted a PR. The NDK installation process doesn't require new doc content anymore. However, changes the NDK version in |
Beta Was this translation helpful? Give feedback.
-
For Android, The NDK version that your project expects is specified in
./android/app/build.gradle
file asndkVersion
variable insideandroid
block. The value of thisndkVersion
should beflutter.ndkVersion
and you should be using Flutter SDK 3.10 or higher.ndkVersion
can be absent if you've created your project with older Flutter SDKs. IfndkVersion
is not defined in your./android/app/build.gradle
file, go ahead and write one yourself.Add this line:
Beta Was this translation helpful? Give feedback.
All reactions