My program versions from flutter terminal:
Flutter 3.27.3 • channel stable •
.git Framework • revision
c519ee916e (3 weeks ago) • 2025-01-21 10:32:23 -0800 Engine •
revision e672b006cb Tools • Dart 3.6.1 • DevTools 2.40.2 Android
toolchain - develop for Android devices (Android SDK version 35.0.1)
Android SDK at C:\Users\marti\AppData\Local\Android\sdk Platform
android-35, build-tools 35.0.1 Java binary at: C:\Program
Files\Java\jdk-20\bin\java
Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
All Android licenses accepted.
I'm having an issue running flutter app for android in Android Studio. The error message I'm getting is:
"Warning: SDK processing. This version only understands SDK XML versions up to 3 but an
SDK XML file of version 4 was encountered. This can happen if you use versions of
Android Studio and the command-line tools that were released at different times."
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
If I ignore it and let the program try to start I get bluescreen.
I have tried to change the version of Android SDK Build Tools to match that of the Emulator SDK as suggested on another question.
I have downloaded Java version 17, as I previously got an error message with Java 21 regarding compatability with gradle, and implemented it with:
flutter config --jdk-dir= "C:\Program Files\Java\jdk-17"
Any tips for fixing this is greatly appreciated as I have been stuck troubleshooting for days to get Android Studio to work. Please be specifig with any tips as my experience with programming is very limited.
One question I have is does it matter which SDK I have entered here? If blank I assume it goes to a default?