First of all special thanks to this link:
http://www.androiddevtools.cn/
Provides resources for almost all Android development needs.
Operating system: CentOS 7.
First, Android Studio
This toss an afternoon, give up, some walls can not be overcome temporarily. Windows is a toss-up, probably not enough support for the Linux64 bit version.
Second, Eclipse ADT
Download the 64-bit Linux version from the link above on the ADT Bundle resource link above (first solve the problem, then consider the optimization).
Third,cannot run program "Your Path/sdk/tools/emulator": java.io.ioexception:error=2, No such file or directory
The file itself must be there, to search the internet for a bit, the reason is to find:
Compatibility issues with 32-bit files on 64-bit systems.
And then it's all kinds of thingsia32-libs安装的问题,然而CentOS 7找不到这个库文件。
Go to the actual path under a look, thank God, inside compiled a variety of operating system version corresponding files. Spit it out. Software Packager, there is no replacement for the 64-bit version of the emulator file.
Iv.cannot run program "Your Path/sdk/build-tools/android-xx/aapt": java.io.ioexception:error=2, No such file or directory
With the third step of experience, very excitedly go to the actual directory to prepare the updated version, however silly eyes, this is only 32-bit executable file. What do we do?
Five, this time really to solve the problem of compatibility operation.
Run directly./aapt, with the following error:/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory
Follow the steps below to resolve this issue:
1.yum Whatprovides ld-linux.so.2
2. Install the appropriate package according to the results.
For example, the installation package that supports this library in CentOS7 is glibc-2.17-106.el7_2.1.i686
3.yum install-y glibc-2.17-106.el7_2.1.i686
Run the./aapt again, and then follow the steps above to install the other necessary 32-bit library files.
I continue to install the zlib-1.2.7-15.el7.i686 and libstdc++-4.8.5-4.el7.i686 library files this time without prompting for errors.
Six, exciting time to be able to create and correctly run the Android project.
Seven, however, the restart Eclipse, also appeared ' Running Android Lint ' has encountered a problem. Failed.
Fortunately, this is relatively simple:
Click Window->preferences->android->lint Error Checking
Remove the tick on the When saving files check for errors option.
64-bit Linux installs the entire process of Android development IDE