trying to use this plugin with a brand new flutter project the following error occur when building the app.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.wear:wear:1.2.0.
AAR metadata file: C:\Users\utente\.gradle\caches\transforms-2\files-2.1\a7a4bb11897004a660028803cee745be\wear-1.2.0\META-INF\com\android\build\gradle\aar-metadata.properties.
I'm trying to run the project on the latest available Wear OS image on AS AVD Manager (API level 30, Android 11).
This is the flutter doctor output
flutter doctor --verbose
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Versione 10.0.19042.1288], locale it-IT)
• Flutter version 2.5.3 at C:\Users\utente\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 18116933e7 (3 weeks ago), 2021-10-15 10:46:35 -0700
• Engine revision d3ea636dc5
• Dart version 2.14.4
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\utente\AppData\Local\Android\Sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_SDK_ROOT = C:\Users\utente\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[√] VS Code, 64-bit edition (version 1.61.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (4 available)
• LLD L31 (mobile) • WYUNW19508000459 • android-arm64 • Android 9 (API 28)
• sdk gwear x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.69
• Edge (web) • edge • web-javascript • Microsoft Edge 95.0.1020.44
• No issues found!
I tried downgrading my Android SDK installation to 30 and updating minSdkVersion & targetSdkVersion to 30 (app/build.gradle), but didn't manage to fix the problem
trying to use this plugin with a brand new flutter project the following error occur when building the app.
I'm trying to run the project on the latest available Wear OS image on AS AVD Manager (API level 30, Android 11). This is the flutter doctor output
I tried downgrading my Android SDK installation to 30 and updating minSdkVersion & targetSdkVersion to 30 (app/build.gradle), but didn't manage to fix the problem