简体   繁体   English

Android Studio Bug? AntergOS Android SDK无法与Android Studio或AUR一起安装

[英]Android Studio Bug? AntergOS Android SDK can't be installed with Android Studio or AUR

OS : Antergos (Linux) 操作系统:Antergos(Linux)

The problem here is the missing Android SDK, I can not install it from either android-studio-2.2 or AUR. 这里的问题是缺少Android SDK,我无法从android-studio-2.2或AUR安装它。

When I tried to install it from the Android SDK, it does not allow me to check the Android SDK Platform for download 当我尝试从Android SDK安装它时, 它不允许我检查Android SDK Platform的下载。

Assuming that Android SDK is already installed I proceed to click next only to be met with this message which confirms that an Android SDK is installed. 假设已经安装了Android SDK,我将继续单击“下一步”,直到出现确认已安装Android SDK的消息 I then tried to start a project which the program in turn throw an error saying that the Android SDK is not installed. 然后,我尝试启动一个项目,该程序反过来抛出一个错误,指出未安装Android SDK。 I then check the settings and found that the Android SDK Location is not set. 然后,我检查设置,发现未设置Android SDK位置。 I google for the location of default Android SDK location, which is $HOME/Android/sdk, which does not exist on my machine. 我用Google搜索默认的Android SDK位置,即$ HOME / Android / sdk,该位置在我的计算机上不存在。 The only conclusion I can make is that Android SDK is not installed on my machine. 我唯一能得出的结论是,我的计算机上未安装Android SDK。 I tried to install it from android-studio-2.2's GUI but it does not let me tick it while saying that it is installed. 我试图从android-studio-2.2的GUI安装它,但是当我说它已安装时,它不允许我打勾。 I then tried to install the Android SDK from the AUR, which returns 'package filename is not valid'. 然后,我尝试从AUR安装Android SDK,该软件返回“包文件名无效”。

I tried installing android-studio-2.2 from both AUR and the official android site, neither let me download Android SDK. 我尝试从AUR和官方android站点安装android-studio-2.2,但都不让我下载Android SDK。

What might be the problem? 可能是什么问题? Is it Antergos? 是Antergos吗? Could it be that the default install path is different than many other path on the internet? 缺省安装路径可能与Internet上的许多其他路径不同吗?

You need to reset the older SDK and Android Studio configuration by going to the: 您需要通过以下步骤来重置旧的SDKAndroid Studio配置:

/home/brandon/.. directory /home/brandon/..目录

and deleting .AndroidStudio2.2 and Android folder. 并删除.AndroidStudio2.2Android文件夹。 Make sure you have enabled hidden directory visibility. 确保已启用隐藏目录可见性。 This will reset old Android Studio setup and start over everything from the beginning. 这将重置旧的Android Studio设置,并从头开始重新进行所有操作。

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

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