Problem installing Android SDK on Ubuntu 14.04

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Problem installing Android SDK on Ubuntu 14.04

Post by capellan » Wed Dec 09, 2015 7:25 am

Hi All,

A few days ago, I was reinstalling again all my Linux setup.

This time, I was installing Ubuntu 14.04 64bits (previously I had Lubuntu 14.04 32bits) and found with surprise that Android SDK Manager
could not download and install API 8, API 10, API 15 and API 18.

Android SDK Manager marks an error and do not allows me to download these files. Notice, I already marked the option "Obsolete" inside Android SDK Manager to view all these files, but this does not resolve this error.

Looking for a solution, I just copied the whole folder android-sdk-linux from an older backup in two different places:
1) /opt (the original location in previous Lubuntu setup) and 2) inside the folder Home

Livecode recognizes Android SDK inside Home folder but do not recognize it when placed inside /opt

Just as expected, this copied android-sdk folder produce an error while building android apps:
Could not encode class bundle.

Looks like I don't know what else to do: How could I setup Android in Ubuntu 14.04?

Thanks in advance!

Alejandro

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Problem installing Android SDK on Ubuntu 14.04

Post by capellan » Thu Dec 10, 2015 7:21 am

Hi All,

I found the solution to this problem in the website AskUbuntu

Looks like newer Ubuntu versions does not include
32bits compatibility components, so I installed them.
Actually, all of them, just to be sure.

http://askubuntu.com/questions/147400/p ... ndroid-sdk

After installing all these 32 bits compatibility components, it was possible to download
all those Android SDK components that I use or need and now I could compile Androids apks

I used these command from AskUbuntu message thread:

sudo apt-get install -y libc6:i386 libgcc1:i386 libstdc++6:i386 libz1:i386
sudo apt-get install lib32z1 lib32z1-dev lib32ncurses5 lib32bz2-1.0
sudo apt-get install lib32stdc++6
sudo apt-get install libgl1-mesa-dev:i386

Which exact component(s) was missing?
I will find out for sure, if in a near future,
again I had to reinstall Ubuntu,

Alejandro

Post Reply