最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Android NDK Version Conflict with Firebase and Flutter Plugins - Stack Overflow

programmeradmin2浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论