I used Android Studio some years ago. After that time I initialized Windows 10 once and used the migration tool to change my SSD. This time, I needed Android Studio once more for making a Flutter app, but it was gone(I don't remember removing it myself).
几年前我用过Android Studio。在那之后,我对Windows10进行了一次初始化,并使用迁移工具更换了我的固态硬盘。这一次,我再次需要Android Studio来制作一款Ffltter应用程序,但它不见了(我不记得自己把它移走了)。
So I installed Android Studio once more and Flutter once more.
But after I make a new flutter project by Android Studio, I can see a blue ribbon at the top of the editor that says 'Android SDK "Android API 29 Platform" is not found on the disk or corrupted.'
所以我又一次安装了Android Studio,又一次飞来飞去。但在我用Android Studio制作了一个新的Ffltter项目后,我可以看到一个蓝丝带出现在编辑器的顶部,上面写着“Android SDK”Android API 29 Platform“未在磁盘上找到或未损坏。”
I try something to solve that. :
我试着想办法解决这个问题。:
- Install Android API 29(Android 10.0("Q")) with the Android SDK manager = not works
- Click the Configure...(on the blue ribbon) and Click "Download Android SDK" and go on = not works
- Uninstall the Andriod Studio with uninstaller(remove all settings) and remove all of the left(%userprofile%.gradle, appdata\local\Android, program files\Android) of it and reinstall Android Studio = not works
Everything is not working. I found one who has a problem like me, but Its solution is not work for me.
并不是所有的事情都在起作用。我找到了一个和我一样有问题的人,但它的解决方案对我不起作用。
How to solve it?
如何解决?
[√] Flutter (Channel stable, 3.13.0, on Microsoft Windows [Version 10.0.19045.3324], locale ko-KR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.29)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.76.2)
[√] Connected device (2 available)
[√] Network resources
更多回答
can you share screenshots please
你能分享一下截图吗
I solved it with @Mohammad Mirshahbazi 's help. I can't take it. sorry
我是在@Mohammad Mirshahbazi的S的帮助下解决的。我受不了了。对不起
Tools –> SDK manager –> SDK tools. Deselect the Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.
工具->SDK管理器->SDK工具。取消选中右下角的Hide Obsolete Packages选项,然后进一步安装Android SDK工具(过时)。现在,SDK目录中会生成一个名为Tools的新文件夹。
To fix the problem, I installed a previous version of Android Studio [Electric Eel | 2022.1.1 Patch 2] from Android Studio Archives which worked fine and I never saw that error again.
为了解决这个问题,我安装了Android Studio档案中的以前版本的Android Studio[Electric Eel|2022.1.1 Patch 2],运行良好,我再也没有看到这个错误。
I've done everything suggested on the internet to fix this problem and that error didn't go away until I downgraded the Android Studio version.
我已经做了互联网上的所有建议来解决这个问题,直到我降低了Android Studio的版本,这个错误才消失。
I had Android Studio [Giraffe | 2022.3.1 Patch 1] which is currently the latest stable version when you try and download it. I am not sure if it's a bug in that version or what but that fixed it for me.
我有Android Studio[长颈鹿|2022.3.1补丁1],当你尝试下载它时,它是目前最新的稳定版本。我不确定这是不是那个版本的错误,或者是什么,但这为我修复了它。
Just to add some steps in @Ali Al-Amrad's Answer. in The Project Structure => Modules => and select Android API 29 from the Drop down list. If That is not present there then you click on Add to download that .
只是在@Ali Al-Amrad的回答中增加一些步骤。在Project Structure=>Modules=>中,从下拉列表中选择Android API 29。如果没有,那么点击Add来下载它。
Settings > Language & frameworks > Android SDK > select Android 10.0 (API Level 29), then click OK.
设置>语言和框架>Android SDK>选择Android 10.0(API级别29),然后单击确定。
then go to file > project structure
然后转到文件>项目结构
- in project select sdk Android API 33
- in modules select the purple folders and select Module SDK: Android 33.
These steps solved the problem for me
这些步骤解决了我的问题
To solve the problem, follow the steps on this Link
要解决问题,请按照此链接上的步骤操作
Try this steps :
请尝试以下步骤:
1 - go to project structure
2- select Modules
3- choose your -android
and change or Add SDK of android api 29 or the latest one such Android API 33
1-转到项目结构2-选择模块3-选择您的-Android并更改或添加Android API 29或最新版本如Android API 33的SDK
press OK , and close your project and reopen it .
this is solved with me .
按“确定”,关闭项目并重新打开。这件事和我一起解决了。
Go to file > Project Structure> and choose the Android API 29 platform from the drop down menu and you are set to go.
转到文件>项目结构>并从下拉菜单中选择Android API 29平台,您就可以开始了。
It is a problem with New UI Android Studio I assume. The fix is very easy, just turn off Enable new UI
in File->Settings->Appearance & Behavior->New UI
. After that restart Android Studio and then turn on Enable new UI
and restart again.
我想这是新用户界面Android Studio的一个问题。修复非常简单,只需在文件->设置->外观和行为->新用户界面中关闭启用新用户界面。之后,重启Android Studio,然后打开启用新用户界面,然后再次重启。
The error should be gone by now.
错误现在应该已经消失了。
I had two separate Android Studio installs upgraded to 2022.3.1 Giraffe, and both had their Android SDKs corrupted as a result.
我有两个单独的Android Studio安装升级到了2022.3.1 Giraffe,结果都被破坏了Android SDK。
The only solution that consistently worked was deleting the Android SDK folder and redownloading everything from scratch (in my case for Android API 34) using Tools -> SDK Manager.
唯一一直有效的解决方案是删除Android SDK文件夹,然后使用工具->SDK管理器从头开始重新下载所有内容(在我的例子中是Android API 34)。
Delete everything related to Android Studio (Android, .jdk and other AS related folders ) including the app itself and download the Android Studion from ToolBox
That will solve your problem.
删除与Android Studio相关的所有内容(Android、.jdk和其他相关文件夹),包括应用程序本身,并从工具箱中下载Android Studion,以解决您的问题。
Most probably you have to download the Android SDK tool (Obsolete) from the SDK Manager
很可能你必须从SDK管理器下载Android SDK工具(已过时)
更多回答
Thank you. The solution for me was actually even easier. Just turn off "Enable new UI" in File->Settings->Appearance & Behavior->New UI. After that restart Android Studio and then turn on "Enable new UI" and restart again. The error should be gone by now.
谢谢。对我来说,解决方案实际上更容易。只需在[文件]->[设置]->[外观与行为]->[新建界面]中关闭[启用新界面]即可。之后,重启Android Studio,然后打开“启用新用户界面”,然后再次重启。错误现在应该已经消失了。
+1 to this error first occurring in Giraffe 2022.3.1 Patch 1. Downgrading fixes the issue. Enabling / disabling the new UI as @jestrabikr mentioned has no effect, likely coincidence.
+1到此错误首次出现在长颈鹿2022.3.1补丁1中。降级修复了该问题。正如@jestrabikr提到的那样,启用/禁用新的UI没有任何效果,很可能是巧合。
This is wrong, the sdk tool has nothing to do with it.
这是错误的,SDK工具与此无关。
well if you are so smart then you should have known by now that , the issue you face will not affect the development process at all : )
如果您这么聪明,那么您现在应该已经知道,您面临的问题根本不会影响开发过程:)
我是一名优秀的程序员,十分优秀!