红联Linux门户
Linux帮助

ubuntu Android Studio安装错误

发布时间:2015-10-26 15:23:32来源:linux网站作者:hhbgk

按照Android官网的安装方法(http://developer.android.com/sdk/installing/index.html?pkg=studio), 出现如下错误:

Exception in thread "main" java.awt.HeadlessException: Unable to detect graphics environment 
No X11 DISPLAY variable was set, but this program performed an operation which requires it. 
at com.intellij.idea.Main.main(Main.java:68) 


在网上搜索了下, 说在启动前执行:

export  DISPLAY=localhost:0 


试了试还真可以!


ubuntu15.04下Android studio开发配置完全教程:http://www.linuxdiyf.com/linux/14284.html

Ubuntu上安装Android Studio 1.3(谷歌Android IDE开发):http://www.linuxdiyf.com/linux/13264.html

在64位ubuntu15.04中安装android studio开发环境:http://www.linuxdiyf.com/linux/12996.html

在Ubuntu 15.04里安装Visual Studio Code:http://www.linuxdiyf.com/linux/12987.html

在Ubuntu 15.04下安装Android Studio:http://www.linuxdiyf.com/linux/12723.html