Can't launch eclipse from adt bundle in ubuntu 12.04 - android

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
Could not display "/media/ACF3-BA90/adt-bundle-linux-x86/eclipse/eclipse".
There is no application installed for executable files. Do you want to search... blabla..
I'm pretty much new to linux and ubuntu... so can someone please help me fix this? :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. That fixed the problem.

I came across the same problem these days when i attempted to write cocos2d-x games with adt-bundle-linux. Now I finally fix that after googling around for hours.
It turns out that this has nothing to do with adt-bundle-linux. The truth is that linux security settings result in such situations. 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).
Simply right click the eclipse and choose "properties", then go to the "Permission" tab and check "Allow executing file as program".
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.
I would recommend you install Eclipse from Ubuntu's Software Manager and install the SDK from Eclipse's Plugin Manager.
Here's the tutorial for the SDK:
http://developer.android.com/sdk/installing/installing-adt.html
Cheers!

Related

Unable to Download Packages via Android SDK Manager

I have recently installed Android SDK on my computer running Windows 7 x64.
I then installed the Eclipse ADT plugin. I am running Eclipse Juno JEE.
When I attempt to run the SDK Manager through Eclipse, I receive the following errors:
Nothing I have tried has allowed me to download/install/update Android SDK and its packages.
I have tried https and forcing http
I have tried running calling program as administrator.
I have added Eclipse, SDK Manager to Firewall exceptions.
I have turned off my antivirus.
I have turned off my firewall.
I have tried various combinations of the above.
I can navigate my browser to both URLs (using Firefox). That should negate "Failed to read..." options 1 and 2. Option 3 seems to be the likely candidate as the XML files do not, in fact, include the <'xsd:schema'> tag. However, I don't know how, if, or where I might be able to point SDK Manager to a local, modified copy of these XML files, or if that would even solve anything.
Any help would be greatly appreciated.
Note: I have installed Android SDK/ Eclipse ADT Plugin on the same machine in the past. This is a fresh install after a recent reimage.
I am not sure if this answer's your question exactly to the point but yet I hope this helps you.
As u wrote it looks like you have downloaded eclipse from its website and android sdk separately from Android website. Why don't you download the Android SDK ADT package with pre-eclipse setup.
That will make your job way lot easier.
The file name would be something like this:
adt-bundle-windows-x86_64-20130729.zip

Installing android-sdk or adt-bundle on Ubuntu 12.04

So on my previous laptop I've installed the android-sdk-linux and Eclipse separately without the adt-bundle, without any issues whatsoever. Also, I installed it under my home directory.
Now that I have a new laptop (clean slate) to start with, I wanted to try and install the adt-bundle into the correct/conventional directory (which I understand is /usr/local/).
But after extracting the bundle into /usr/local/ I get weird issues like adb not being an executable, etc. Opening Eclipse yields a lot of errors regarding the SDK, ADT, and adb.
What is the correct method of doing this? A step-by-step or otherwise comprehensive set of methods would be greatly appreciated.
Also, is there any reason why I should consider installing android-sdk-linux and Eclipse separately instead of using the adt-bundle?
Thanks in advance :). This will help me learn more about Linux filesystems and administrations a little bit too!
It seems that the problem is in Linux filesystem permissions of your folder. In case of home directory the owner of the files is your user, in case of /usr/local/ the owner is root. You should try to change the owner of the folder:
chown -R <owner_name>:<owner_group> <your_dir>
As for reasons to install sdk and Eclipse separately, I don't think that you'll find critical one. Using bundle it's easier to install everything to work with Android (I think that Eclipse in this case is already configured, however I do not know precisely because I've never used this approach).

Again! In Ubuntu 32 bit: Eclipse can't execute appt in Android sdk

"Error executing aapt. Please check aapt is present at ... /platform tools/aapt"
I am trying to build Android apps using Eclipse Android SDK in Ubuntu.
I installed Ubuntu 32bit 10.10 in two different computers and I can't fix the problems now.
I installed Eclipse, ADT plugin, Android SDK, all Android APIs, ...and also I have set Preferences to Android SDK folder. I also carefully put all SDK and Eclipse in my username folder to make sure I fully have right permission.
I also try to use google to find similar cases. Most cases use 64 bit Ubuntu.
I also fix the GNU compiler and some instructions here.
But now I am really hopeless. It looks like this problem is really serious.
I really appreciate all of your helps.
Thanks so much
ddienle#gmail.com
ledangdien#yahoo.com
Thanks again
*Also, I try to restart my Computer many times and try to install many different version
of Eclipse. Each time I set Preferences for Android SDK, the following message box occur
"Failed to get the adb version: Cannot run program "/home/sdc/android-sdk-linux_x86/platform-tools/adb": java.io.IOException: error=13, Permission denied"
Now I try everything but they don't work*
Have you tried the adt-eclipse-bundle?
https://developer.android.com/sdk/installing/bundle.html
You have some wrong permissions. Perhaps some files are owned by the root user because of using sudo when it wasn't needed. All files in your home directory should be owned by your user. You can fix that with the following:
sudo chown -Rc $USER:$USER /home/sdc/

DDMS throwing ADB error since SDK API 9 upgrade

I upgraded to Gingerbreak 2.3 SDK today and started receiving this error when I try to run DDMS:
Failed to get adb version: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified.
How can I fix this? Running Windows 7, 64bit.
It seems that adb.exe is now in the SDK's platform-tools folder. I had to add the platform-tools folder to my PATH in my Environment Variables.
I tried to upgrade my perfectly working Android dev system yesterday with the new 2.3 SDK and associated ADT. After the upgrade, I couldn't get Eclipse to compile my project correctly, nor could I access the Android SDK and AVD Manager from Eclipse. Eclipse seems to have lost track of where the Android SDK was installed. I would give it the name of the folder, but then it could come back saying it couldn't find .../tools/adb.exe. Yes I know adb.exe moved. But notice that the error was looking for it in the old spot. It's like I didn't have the new ADT, but I checked and rechecked and I did. I'm thinking that the new ADT didn't install correctly for some reason, and/or I wasn't checking it's version properly.
When I searched around for a solution, everyone pointed out that adb moved and that the classpath needed to change. But there isn't really a relevant classpath in this situation. There is just a path to the Android SDK that needs to be set in Eclipse. I even tried the trick were I copied adb.exe back to the tools folder. At that point, Eclipse could find the Android SDK, but then some other problem that crept up so I gave up on that hole.
Anyway, I ended up blowing away my eclipse and Android SDK folders and starting over. Now it works fine. I'm sure there's a better solution, but I was sick of messing with it.
I'm now 2 for 4 on using Android SDK and AVD Manager to do an upgrade.
Hope this helps someone.
Update: Upon further review, I seem to have my stackoverflow topics mixed up since the OP never mentioned Eclipse.
I had the same problem and it works like this . First run adb.exe , after open ddms.bat

Android ADT Plugin doesn't show up in Eclipse

I'm using Windows 7 and installed the 64 bit version of Eclipse 3.5.2. I then installed the Android ADT plugin, but when I try to configure it in the Windows > Preferences dialog, the Android Plugin doesn't show up in the left pane. Instead I see DDMS. This prevents me from specifying the location of the Android SDK (unless there is another way) to give me the appropriate templates and such.
Someone posted a fix to this that includes setting the permissions of Eclipse, but that didn't work for me. I tried installing the Android Plugin from both online installation (thru the URL install) and the offline Archive method.
If you're running Windows Vista or 7, make sure you right-click Eclipse and RUN AS ADMINISTRATOR. I literally spent six hours figuring this out, and this was what fixed it.
Dear people from the future:
I had roughly the same problem in linux, except that i didn't see anything at all but vanilla eclipse after installing. by combining both previous answers i got it to work:
start eclipse with sudo eclipse -clean, install the plugins and restart eclipse. the plugins showed up including the welcome screen that's supposed to be there.
after that it should work when running as regular user as well.
works for both the android sdk and the gwt sdk. (and probably other eclipse plugins)
Remove the plugin, then restart as follows:
eclipse -clean
Now try reinstalling the ADT from the online installation
For users having similar problem and not luck with other solutions:
I have windows XP but had same problem. I realized that I had JDK5/bin folder in my PATH environment variable (though my JDK_HOME was pointing to JDK6), as soon as I modified the PATH to replace bin of JDK5 with JDK6, the Android buttons on eclipse (after restart with -clean) along with Android option in Preferences & New Project showed up. (Weird eh!)
Also, consider to install the bundle android installation having eclipse with pre-configured Android SDK if a new eclipse installation doesn't matter to you
http://developer.android.com/sdk/installing/bundle.html
The above answers do not confront the heart of the problem. There is a feature in Windows 7 that prevents downloaded files from direct access of local files. All of the state is perfectly maintained in the Eclipse workspace instance. The problem is easily resolved by doing the following:
Find the "Eclipse" executable
Right-click on it.
Click "Properties".
Select the "General" tab.
Look for -> Security: "This file came from another computer and might be blocked..."
Click Unblock.
This is a much better solution than uninstalling and reinstalling the ADT or Eclipse which can be a pain.

Categories

Resources