Created
February 26, 2022 15:12
-
-
Save aduquet/ce365c8e00bade71d17ddbfe6edc578f to your computer and use it in GitHub Desktop.
Error in firebase with flatter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\duquet\Documents\Personal\Empresa\quiz-flutter\quiz_app_v2\quiz\android\app\src\debug\AndroidManifest.xml Error: | |
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:cloud_firestore] C:\Users\duquet\Documents\Personal\Empresa\quiz-flutter\quiz_app_v2\quiz\build\cloud_firestore\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16 | |
Suggestion: use a compatible library with a minSdk of at most 16, | |
or increase this project's minSdk version to at least 19, | |
or use tools:overrideLibrary="io.flutter.plugins.firebase.firestore" to force usage (may lead to runtime failures) | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':app:processDebugMainManifest'. | |
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:cloud_firestore] C:\Users\duquet\Documents\Personal\Empresa\quiz-flutter\quiz_app_v2\quiz\build\cloud_firestore\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16 | |
Suggestion: use a compatible library with a minSdk of at most 16, | |
or increase this project's minSdk version to at least 19, | |
or use tools:overrideLibrary="io.flutter.plugins.firebase.firestore" to force usage (may lead to runtime failures) | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. | |
* Get more help at https://help.gradle.org | |
BUILD FAILED in 20s | |
------------------ | |
Solving in this way | |
Go to | |
android/app/build.gradle | |
The problem is in the minSdk version | |
defaultConfig { | |
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | |
applicationId "com.quizFlutter" | |
minSdkVersion flutter.minSdkVersion | |
targetSdkVersion flutter.targetSdkVersion | |
versionCode flutterVersionCode.toInteger() | |
versionName flutterVersionName | |
} | |
Change to: | |
defaultConfig { | |
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | |
applicationId "com.quizFlutter" | |
minSdkVersion 16 | |
targetSdkVersion 30 | |
versionCode flutterVersionCode.toInteger() | |
versionName flutterVersionName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment