Closed chris-wickens closed 9 months ago
Hi @chris-wickens
I do not intend to specify an older version, as Android recommends always setting the latest compileSdkVersion, plus I can expect that flutter will be upgrading it in the near future.
You can ignore the warning, but there are several solutions.
Solution 1: upgrade the complieSdkVersion of your project to 34, as output in the log Solution 2: set the version of flutter to beta.
Note that many flutter apps made by Google use the beta version, so basically using the beta version is not a problem.
Thanks for clarifying @natsuk4ze. I run into enough problems moving between stable versions so I'll stay off the beta track for now and live with the warning.
Thanks for clarifying @natsuk4ze. I run into enough problems moving between stable versions so I'll stay off the beta track for now and live with the warning.
OK. But remember that the warning disappears if you just specify the latest (34) complieSdkVersion of your project as shown in the log.
Did you check the documentation and it did not help?
Overview
When running the example app using Flutter 3.16.9 (latest stable) I get the following warning.
The app still compiles and the example app appears to work as expected. I just wanted to check whether anyone else is getting this or has more information as I couldn't find an existing issue. I'm also getting this warning when importing the package into my own project.
Steps to reproduce
Code sample
See the example app
Environment
Logs
```console [✓] Flutter (Channel stable, 3.16.9, on macOS 14.3 23D56 darwin-arm64, locale en-GB) • Flutter version 3.16.9 on channel stable at /Users/chriswickens/.asdf/installs/flutter/3.16.9-stable • Upstream repository https://github.com/flutter/flutter.git • Framework revision 41456452f2 (3 weeks ago), 2024-01-25 10:06:23 -0800 • Engine revision f40e976bed • Dart version 3.2.6 • DevTools version 2.28.5 [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/chriswickens/Library/Android/sdk ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 15.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15C500b • CocoaPods version 1.13.0 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2023.1) • Android Studio at /Applications/Android Studio.app/Contents • 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 17.0.7+0-17.0.7b1000.6-10550314) [✓] VS Code (version 1.86.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.82.0 [✓] Connected device (5 available) • Pixel 6 (mobile) • 1A141FDF6009JM • android-arm64 • Android 14 (API 34) • Christopher’s iPad (mobile) • 00008103-001438D221D1001E • ios • iOS 17.4 21E5195e • iPhone 15 Pro (mobile) • 7AFF6F91-5095-4290-AAF7-4271825620E2 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.3 23D56 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 121.0.6167.160 [✓] Network resources • All expected network resources are available. ```Logs
Logs
```console [Paste your logs here] ```