简体   繁体   English

无法在ubuntu上安装android-studio-错误“无法访问SDK”

[英]can not install android-studio on ubuntu - error 'cannot access sdk'

I have been trying to install android studio on Ubuntu 14.04 (64) 我一直试图在Ubuntu 14.04(64)上安装android studio。

I have followed these steps. 我已经按照这些步骤。

From the terminal I typed: 从终端输入:

sudo add-apt-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio

It installed so I found it using 它安装了,所以我用找到了

dpkg -L android-studio

The application was installed in /usr/share/applications/android-studio which I physically clicked on from nautilus - which started the setup wizzard. 该应用程序安装在/ usr / share / applications / android-studio中,我从nautilus上实际单击过该文件-这启动了安装向导。 I clicked standard install. 我单击了标准安装。

It took a long time downloading the entire sdk but once it was fully downloaded it gave me this message: 下载整个sdk花费了很长时间,但是一旦完全下载,它就会给我以下消息:

Android SDK is up to date.
Creating Android virtual device
Unable to access SDK

And gave me just the option to finish which closed the setup wizzard. 并给了我完成安装向导的选项。

I tried the whole process again as root (sudo nautilus and again physically clicking on the application icon). 我再次以root用户身份尝试了整个过程(sudo nautilus,然后再次物理单击了应用程序图标)。 It downloaded the whole sdk a second time - and gave the same error. 它第二次下载了整个SDK,并给出了相同的错误。

I'm not sure if this is a Ubuntu problem, an Android Studio problem or just a me problem. 我不确定这是Ubuntu问题,Android Studio问题还是我问题。 Please help. 请帮忙。

I'm using the Android Studio under Ubuntu since February and I'm always installing it the same way: 自二月份以来,我一直在Ubuntu下使用Android Studio,并且始终以相同的方式进行安装:

  1. Download zip archive here 在此处下载zip存档
  2. Unzip it 解压缩
  3. Move unpacked Studio to /opt dir 将解压缩的Studio移至/opt目录
  4. Run /opt/android-studio/bin/studio.sh 运行/opt/android-studio/bin/studio.sh

After that I usually go to Tools -> Create desktop entry... and creating the AS entry in Unity launcher. 之后,我通常会转到Tools -> Create desktop entry...然后在Unity启动器中创建AS条目。 Works without any issues. 没有任何问题的作品。

OK it has been a lot of searching but it appears the problem is that the adb and some other sdk tools still use some 32 bit libraries which have been deprecated and are no longer supplied with the latest version of Ubuntu 64 好的,已经进行了很多搜索,但是似乎出现了问题,即adb和其他一些sdk工具仍使用一些32位库,这些库已被弃用,并且不再随最新版本的Ubuntu 64提供

Hopefully this issue will be resolved soon in the meantime I got it working with: 希望与此同时,我可以解决此问题:

$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

$ sudo apt-get install apt-get install lib32stdc++6 $ sudo apt-get install apt-get install lib32stdc++6

And so far it is working as expected. 到目前为止,它正在按预期运行。

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

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