简体   繁体   English

卡在 Android Studio 的设置向导上

[英]Stuck on setup wizard of Android Studio

I am stuck on this screen我卡在这个屏幕上在此处输入图片说明

Can't perform any further action.无法执行任何进一步操作。 Since I already downloaded an SDK, I downloaded this version由于我已经下载了一个SDK,所以我下载了这个版本在此处输入图片说明

Actually android studio try to download all the components of sdk, those which you don't have.实际上android studio尝试下载sdk的所有组件,那些你没有的。
So, it can take a lot time, instead you can disable "Downloading Components" at startup:因此,这可能需要很长时间,您可以在启动时禁用“下载组件”:

  • Go to the installation directory of Android Studio.进入Android Studio的安装目录。 There you will find a folder named "bin".在那里你会找到一个名为“bin”的文件夹。 Inside this folder there is a file named "idea.properties".在这个文件夹中有一个名为“idea.properties”的文件。
  • Open this file and add the following line to the end of the file: disable.android.first.run=true打开此文件并将以下行添加到文件末尾:disable.android.first.run=true

What this will do is disable the check that Android Studio performs on first run and decides to download all that stuff.这将做的是禁用 Android Studio 在第一次运行时执行的检查并决定下载所有这些东西。

If it asks to save the file at some different place instead of overwriting the original one, please check the access permissions to the file.如果它要求将文件保存在其他位置而不是覆盖原来的位置,请检查文件的访问权限。
Hope this will help you.希望这会帮助你。

Remove Android Studio settings dirs for re-run Setup Wizard.删除 Android Studio 设置目录以重新运行设置向导。

I my case I removed both我的情况我删除了两个

C:\Users\bieli\.AndroidStudio4.0
and
C:\Users\bieli\.android

Have you specified custom path to SDK in previous step??您是否在上一步中指定了 SDK 的自定义路径?
if you do not download the SDK you have to go through custom settings and then specify path to SDK.如果您不下载 SDK,则必须进行自定义设置,然后指定 SDK 的路径。
you are also needed to configure the path to SDK in your environment variables, if you are using window system.如果您使用的是窗口系统,您还需要在环境变量中配置 SDK 的路径。

What I found reason for this problem, my SDK was corrupted or damaged.我发现此问题的原因是我的 SDK 已损坏或损坏。 My drive were crashed and I have recovered files by recovering tool, that's why files are get damaged and SDK was not working properly.我的驱动器崩溃了,我已经通过恢复工具恢复了文件,这就是为什么文件被损坏并且 SDK 无法正常工作的原因。

Then I redownloaded SDK and its running fine.然后我重新下载了 SDK 并且它运行良好。

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

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