I was getting this error
The plugin firebase_auth requires a higher Android SDK version.
Fix this issue by adding the following to the file D:flutter_learnandroidappbuild.gradle:
android {
defaultConfig {
minSdkVersion 23
}
}
so i changed minSdk=23;
android {
defaultConfig {
applicationId = "com.example.flutter_learn"
minSdk = 23 //flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
}
}
**After that i am getting this error **
Launching libmain.dart on sdk gphone16k x86 64 in debug mode...
√ Built buildappoutputsflutter-apkapp-debug.apk
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install D:flutter_learnbuildappoutputsflutter-apkapp-debug.apk: Failure [INSTALL_FAILED_INVALID_APK: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]
Error launching application on sdk gphone16k x86 64.
i don’t know why this is happening does anybody know why this is happening!!!!
I added these
enter image description here