SoFunction
Updated on 2025-03-11

Based on Android SDK - Issues to note when using in 64-bit Linux

Because the machine memory was broken, I changed the memory and reinstalled a 64-bit Fedora16, and removed the original 32-bit Fedora15 grid.
So I encountered a very interesting thing when reinstalling the Android SDK. First, the SDK installation files and ADT cannot be downloaded. The mobile broadband I used in my home just cannot be downloaded. When I contacted my friend, I found that the broadband of Mobile and China Unicom could not be downloaded. China Telecom can download it normally. It is really weird! There was no way, I went to my friend and sent one.
When I came back to install, I kept stopping in the Fetching state and used it"Detailed explanation of the method to solve the failure of Android SDK download and update"The provided method was successfully downloaded!
Unexpectedly, after the download was completed, the compilation failed, the R file could not be generated, and the project could not be run, and the adb and aapt were missing, but these two clearly existed, and after running these two commands at the command line, I found that the following error occurred:
Copy the codeThe code is as follows:

bash adb: /lib/.2: bad ELF interpreter: No such file or directory

A very strange problem. I have never encountered it before. I went to Baidu and I really encountered it. The situation is like me. I also use the SDK under 64-bit Fedora. It is said that adb and aapt require 32-bit libraries. It is really weak. Since it does not support 64-bit, why does it still say that it supports 64-bit!
There are 4 libraries missing in total, one is .2, one is .2, and one is libstdc++.5 and .1
The installation method is to use yum to find out which package it is, and then install this package:
Copy the codeThe code is as follows:

yum whatprovides .2

It will tell you which package it is and then install it
Copy the codeThe code is as follows:

yum install -y glibc-2.14.90-24.fc16.6.i686

It should be noted that it is best to write the package name all, otherwise it may also install 64-bit.
Adb and aapt alone require the 4 mentioned above. I don’t know about the others, because other commands have not been used yet.
However, Android's SDK is really weak!
In order to be able to run the simulator, the following three libraries must be installed:
Copy the codeThe code is as follows:

yum install -y SDL-1.2.14-13.fc16.i686 libXrandr-1.3.1-2.fc15.i686 libX11.i686