I was wondering if this would be the only solution, fixing the ndk version?
I'm working on a Flutter project with an Android module, and I'm encountering an NDK version conflict when trying to build the app.
The error message states:
Our project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:
- firebase_core requires Android NDK 27.0.12077973
- firebase_remote_config requires Android NDK 27.0.12077973
- flutter_secure_storage requires Android NDK 27.0.12077973
- path_provider_android requires Android NDK 27.0.12077973
- shared_preferences_android requires Android NDK 27.0.12077973
Fix this issue by using the highest Android NDK version (they are backward compatible).
Updating ndkVersion in android/app/build.gradle.kts
android {
ndkVersion = "27.0.12077973"
}
flutter clean
flutter pub get
./gradlew clean
./gradlew assembleDebug