简体   繁体   English

缺少 Android 应用程序配置和 Android Studio SDK 管理器不存在

[英]Android Application Configuration Missing and Android Studio SDK Manager does not exist

After downloading Android Studio and opening an existing project, when I went to edit configuration (after trying to run an existing project) but when I attempted to configure it as an Android Application, I did not find the android application option, which when I compared to my other computer, is required to run the program.下载 Android Studio 并打开现有项目后,当我去编辑配置时(在尝试运行现有项目后)但是当我尝试将其配置为 Android 应用程序时,我没有找到 android 应用程序选项,当我比较时到我的另一台电脑,需要运行程序。

Furthermore, I am missing the Android SDK Manager, both in the IDE and on the startup screen.此外,我在 IDE 和启动屏幕上都缺少 Android SDK 管理器。 I don't have SDKs installed on this computer, and I think they are needed to run my project, so I kind of want the SDK Manager.我在这台电脑上没有安装 SDK,我认为运行我的项目需要它们,所以我有点想要 SDK Manager。

I have also re-installed Android Studio 8 times, including several older versions.我还重新安装了 Android Studio 8 次,包括几个旧版本。 I also installed the packages, which do come with SDK tools, and I made sure everything was selected on installation.我还安装了 SDK 工具附带的软件包,并确保在安装时选择了所有内容。

In my case it helps: just File -> invalidate caches/Restart就我而言,它有帮助:只需文件 -> 使缓存无效/重新启动

hope it also can be usefull to someone ;-)希望它也可以对某人有用;-)

check the sdk manager present in the location "C:\\Users\\"user-name"\\AppData\\Local\\Android\\sdk" launch the SDK manager install the package that you needed检查位置 "C:\\Users\\"user-name"\\AppData\\Local\\Android\\sdk" 中存在的 sdk 管理器启动 SDK 管理器安装您需要的包

paste the link "C:\\Users\\"user-name"\\AppData\\Local\\Android\\sdk" [Android Studio>configure>Settings>Android SDK ]粘贴链接 "C:\\Users\\"user-name"\\AppData\\Local\\Android\\sdk" [Android Studio>configure>Settings>Android SDK]

Maybe try deleting everything of Android Studio and then installing the latest version.也许尝试删除 Android Studio 的所有内容,然后安装最新版本。 It might be because of the leftovers of the previous versions that caused this problem to occur.可能是因为之前版本的遗留问题导致了这个问题的发生。 The best way is to try restoring your PC to the time you hadn't have Android Studio.最好的方法是尝试将您的 PC 恢复到您没有 Android Studio 的时间。

单击文件 -> 将项目与 Gradle 文件同步

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM