Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 8214  / 3 Years ago, sun, august 22, 2021, 9:45:47

I've asked this question both on StackOverflow and the Android Dev forum, but neither got a single reply as of yet. Perhaps a direct focus on Ubuntu might get some results.



I've installed the SDK on Ubuntu 12.0.4. I started up the SDK manager and updated several packages.



I ran the avd manager and tried to create an avd, but it just failed with no information.



I then tried to create the avd from the command line, using the same information I tried to use from the gui, and it worked.



When I tried to start that AVD, it failed with (some strings elided):



Failed to start emulator: Cannot run program "<myhome>/apps/android/android-sdk-linux/tools/emulator": java.io.IOException: error=2, No such file or directory


This is what I see when I look for this file:



$ ls -lt <myhome>/apps/android/android-sdk-linux/tools/emulator
-rwxrwxr-x 1 <me> <me> 24828 May 25 08:20 <myhome>/apps/android/android-sdk-linux/tools/emulator*


As you can see, the path it's looking for DOES exist.



What's going on here?



From one of the responses:



$ file ~/apps/android/android-sdk-linux/tools/emulator
~/apps/android/android-sdk-linux/tools/emulator: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
$
$ file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x214a38d0db472db559f0dabf0ae97f82fea83e03, stripped
$ uname -a
Linux ... 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


So, it looks like that might be the problem, but I don't see a 64-bit Android SDK distro. Am I going to have to give up on the 64-bit Ubuntu if I want to use the Android SDK on it?


More From » 12.04

 Answers
7

Have you installed the 32 bits SDK on a 64 bits host, or vice versa?



If you are on 64bit you will need to install the ia32-libs package.


[#38057] Tuesday, August 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terose

Total Points: 185
Total Questions: 125
Total Answers: 131

Location: Venezuela
Member since Mon, Dec 13, 2021
2 Years ago
terose questions
;