İnternette her yere baktım ama hiçbir şekilde bu sorunu çözemedim. Cihaz olarak chrome seçtiğimde çalışıyor ama android sanal makineyi seçtiğimde hata veriyor. Biri yardımcı olabilir mi final ödevim için acil yardıma ihtiyacım var.
`Invalid depfile: D:\Projects\Flutter\weather_btu_project.dart_tool\flutter_build\2b4db39fc5156352078410f2c9b837e6\kernel_snapshot.d
Invalid depfile: D:\Projects\Flutter\weather_btu_project.dart_tool\flutter_build\2b4db39fc5156352078410f2c9b837e6\kernel_snapshot.d
D:\Projects\Flutter\weather_btu_project\android\app\src\debug\AndroidManifest.xml Error:
uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [:location] D:\Projects\Flutter\weather_btu_project\build\location\intermediates\merged_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 19
Suggestion: use a compatible library with a minSdk of at most 19,
or increase this project’s minSdk version to at least 21,
or use tools:overrideLibrary=“com.lyokone.location” 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 19 cannot be smaller than version 21 declared in library [:location] D:\Projects\Flutter\weather_btu_project\build\location\intermediates\merged_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 19
Suggestion: use a compatible library with a minSdk of at most 19,
or increase this project’s minSdk version to at least 21,
or use tools:overrideLibrary=“com.lyokone.location” to force usage (may lead to runtime failures)
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.
BU�LD FAILED in 4s
┌─ Flutter Fix ─────────────────────────────────────────────────────────────────────────────────┐
│ The plugin location requires a higher Android SDK version. │
│ Fix this issue by adding the following to the file │
│ D:\Projects\Flutter\weather_btu_project\android\app\build.gradle: │
│ android { │
│ defaultConfig { │
│ minSdkVersion 21 │
│ } │
│ } │
│ │
│ Following this change, your app will not be available to users running Android SDKs below 21. │
│ Consider searching for a version of this plugin that supports these lower versions of the │
│ Android SDK instead. │
│ For more information, see: │
│ https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration │
└───────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
`
android sdk güncellemeyle ilgili galiba ama her şeyi silip sıfırdan son sürümleriyle kurdum yine aynı.