简体   繁体   English

无法在ubuntu 12.04中从adt bundle启动eclipse

[英]Can't launch eclipse from adt bundle in ubuntu 12.04

So I downloaded the adt bundle for linux from developer.android.com extracted it, 32bit version, went to adt-bundle-linux-x86/eclipse tried to launch eclipse but it's giving me an error 所以我从developer.android.com下载了针对linux的adt包,提取了它,32位版本,转到adt-bundle-linux-x86 / eclipse尝试启动eclipse但是它给了我一个错误

Could not display "/media/ACF3-BA90/adt-bundle-linux-x86/eclipse/eclipse". 无法显示“/ media / ACF3-BA90 / adt-bundle-linux-x86 / eclipse / eclipse”。 There is no application installed for executable files. 没有为可执行文件安装应用程序。 Do you want to search... blabla.. 你想搜索... blabla ..

I'm pretty much new to linux and ubuntu... so can someone please help me fix this? 我对linux和ubuntu都很陌生......所以有人可以帮我解决这个问题吗? :P :P

EDIT: The problem was caused because I had it extracted on removable media and Allow executing file as program (Properties -> Permissions) still didn't fix the problem, so I had to transfer it to my (static) Linux partition. 编辑:问题是由于我在可移动媒体上提取它并允许执行文件作为程序(属性 - >权限)仍然没有解决问题,所以我不得不将其转移到我的(静态)Linux分区。 That fixed the problem. 这解决了问题。

I came across the same problem these days when i attempted to write cocos2d-x games with adt-bundle-linux. 这些天我试图用adt-bundle-linux编写cocos2d-x游戏时遇到了同样的问题。 Now I finally fix that after googling around for hours. 现在我终于通过谷歌搜索了几个小时。 It turns out that this has nothing to do with adt-bundle-linux. 事实证明这与adt-bundle-linux无关。 The truth is that linux security settings result in such situations. 事实是Linux安全设置导致了这种情况。 It disables any executable file from other sources (in this case, it comes from the Internet and linux regards it as dangerous and unreliable files). 它禁用来自其他来源的任何可执行文件(在这种情况下,它来自Internet,Linux将其视为危险且不可靠的文件)。 Simply right click the eclipse and choose "properties", then go to the "Permission" tab and check "Allow executing file as program". 只需右键单击eclipse并选择“属性”,然后转到“权限”选项卡并选中“允许将文件作为程序执行”。 Hope this will help you.^_^ 希望这会对你有所帮助。^ _ ^

It seems you have installed to some sort of removable media and therefore your install could have bad references for eclipse's files. 您似乎已经安装了某种可移动媒体,因此您的安装可能会对eclipse的文件有错误的引用。

I would recommend you install Eclipse from Ubuntu's Software Manager and install the SDK from Eclipse's Plugin Manager. 我建议你从Ubuntu的软件管理器安装Eclipse,然后从Eclipse的插件管理器安装SDK。

Here's the tutorial for the SDK: 这是SDK的教程:

http://developer.android.com/sdk/installing/installing-adt.html http://developer.android.com/sdk/installing/installing-adt.html

Cheers! 干杯!

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

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