Installation instructions in pub.dev says setting Android NDK to 25.2.9519653, and in turn sample app uses 27.0.12077973. What version is preferable? Any essential difference?
Solved! Go to Solution.
Tired to build an app with Flutter default NDK version, and got the following error. So, the answer is obvious now: 27.0.12077973 is the version suitable for all dependencies.
Running Gradle task 'assembleDebug'...
Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:
- arcgis_maps requires Android NDK 25.2.9519653
- device_info_plus requires Android NDK 27.0.12077973
- flutter_secure_storage requires Android NDK 27.0.12077973
- flutter_web_auth_2 requires Android NDK 27.0.12077973
- geolocator_android requires Android NDK 27.0.12077973
- haptic_feedback requires Android NDK 27.0.12077973
- package_info_plus requires Android NDK 27.0.12077973
- path_provider_android requires Android NDK 27.0.12077973
- sqlite3_flutter_libs requires Android NDK 27.0.12077973
- url_launcher_android requires Android NDK 27.0.12077973
Fix this issue by using the highest Android NDK version (they are backward compatible).
Add the following to /Users/efedorov/projects/flutter/<PROJECT_NAME>/android/app/build.gradle.kts:
android {
ndkVersion = "27.0.12077973"
...
}
Our current build of argis_maps 200.7 is based on Flutter 3.29. It is important to note that Flutter 3.29 requires Android NDK version 27.0.12077973 as the minimum supported version. Therefore, it is highly recommended to use Android NDK v27.
Could you please provide any documentation on this? As I see, Flutter 3.29 tools create project with NDK 26.3.11579264 (see here). Just checked on my machine (with Flutter 3.29.3): running freshly created application caused 26.3.11579264 to be installed (it was not previously). Looks quite confusing for me.
Tired to build an app with Flutter default NDK version, and got the following error. So, the answer is obvious now: 27.0.12077973 is the version suitable for all dependencies.
Running Gradle task 'assembleDebug'...
Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:
- arcgis_maps requires Android NDK 25.2.9519653
- device_info_plus requires Android NDK 27.0.12077973
- flutter_secure_storage requires Android NDK 27.0.12077973
- flutter_web_auth_2 requires Android NDK 27.0.12077973
- geolocator_android requires Android NDK 27.0.12077973
- haptic_feedback requires Android NDK 27.0.12077973
- package_info_plus requires Android NDK 27.0.12077973
- path_provider_android requires Android NDK 27.0.12077973
- sqlite3_flutter_libs requires Android NDK 27.0.12077973
- url_launcher_android requires Android NDK 27.0.12077973
Fix this issue by using the highest Android NDK version (they are backward compatible).
Add the following to /Users/efedorov/projects/flutter/<PROJECT_NAME>/android/app/build.gradle.kts:
android {
ndkVersion = "27.0.12077973"
...
}