最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

flutter - Android Studio Error handling SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML fi

programmeradmin1浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论