1. Install the NDK (Side By Side)
In Android Studio, install the NDK to your Flutter Project by following these steps
- From an open project, select Tools > Android > SDK Manager from the main menu.
- Click the SDK Tools tab.
- Check the box to Show Package Details and note the version number
- Check the box next to NDK, CMake, and Android SDK Command-line Tools
- Click Apply
Install NDK and CMake in Android SDK Manager
After the necessary files are installed, go to File > Project Structure > SDK and select the NDK version.
or add this line to your ./android/app/src/build.gradle file
android {
compileSdkVersion 30
ndkVersion "21.1.6352462" // << Add this line with your version of the NDK
...
}
See the NDK documentation here for more details on installing the NDK.
2. CodeMagic Build Settings
In your Project Set up on codemagic.io make sure you're building for release then try building your app again.
Under build settings make sure you're building for release and not debug