简体   繁体   English

无法在Android Studio中设置Android SDK路径

[英]Unable to set Android SDK Path in Android Studio

I am unable to set the Android SDK Path on a fresh install of Android Studio for Ubuntu 14.04. 我无法在全新安装的适用于Ubuntu 14.04的Android Studio上设置Android SDK路径。 Clicking 'Apply' and 'OK' do not do anything, even though the supplied path is valid. 即使提供的路径有效,单击“应用”和“确定”也不会执行任何操作。

This error does appear to be linked to file permissions. 此错误似乎与文件权限有关。 Another option rather than granting read write and execute rights to everyone is to change the owner/group of the files like so: 除了向每个人授予读写权限之外,另一种选择是更改文件的所有者/组,如下所示:

sudo chown -R UserNameHere:UserGroupHere android-studio

My Android SDK directory did not have the necessary permissions. 我的Android SDK目录没有必要的权限。

I blindly updated them with 我盲目地更新了它们

$ sudo chmod -R 777 /urs/bin/android-studio/

and it now works. 现在可以了。

I reported a bug for this: https://code.google.com/p/android/issues/detail?id=73155 我报告了一个错误: https : //code.google.com/p/android/issues/detail?id=73155

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

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