(Has been for several days, failed, very helpless)
A little experience is written here.
One. 1. Download adt-bundle-linux-x86_64-**** directly (including Eclipse and ADT and SDK)
2.
3. Installing the JDK
4. Set the SDK path
5. Restart Eclipse
6. Download the SDK contents, Android SDK tools
Android SDK Platform-tools
Android SDK Builds-tools
Consider compatibility ADT and SDK
Select Tools (Preview Channel)
All contents of Android * * * (otherwise will be error)
If the download does not move
Change the address to mirrors.neusoft.edu.cn.
Port 80
Force:http
7. Android SDK and Linux are part of the common
Sdkhome Below are:
Add-ons Universal
Build-tools not Universal
Docs General
Extras Universal
Platforms Universal
Platform-tools not Universal
Samples Universal
Sources Universal
System-images Universal
Temp generic (This is a temporary folder for Sdkmanager update data, may not exist, no need to do so)
Tools Not Universal
Http://jingyan.baidu.com/article/47a29f2434ff15c014239992.html
Two. 1. Install JDK sudo apt-get install OPENJDK-8-JDK
2. See if the JDK is installed successfully java-version Javac-version
3. Download Eclipse, an online installation package that downloads the eclipse itself directly (http://www.eclipse.org/downloads/)
4. Download ADT, install ADT, in Help-install new Softword, select the downloaded ADT (ADT can auto-Associate SDK) to update the SDK
5. View ADT and SDK version http://jingyan.baidu.com/article/b0b63dbfc5f49b4a4830700a.html
6. Install offline ADT When the network is broken, otherwise the opportunity does not move.
Note ADT and SDK incompatibility issues
Http://www.linuxidc.com/Linux/2015-04/115797.htm
http://blog.csdn.net/yanzi1225627/article/details/45318069 need to develop the latest Android 5.0 look at this
I. Acquisition of REPO
Http://www.cnblogs.com/bluestorm/p/4419135.html (Take a look at this website first)
Repo Sync-l
This is a foreigner to build their own, using this source can be obtained repo, but the subsequent source code is also used by foreigners to establish themselves. First get repo:
1
Curl "Http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
Add the appropriate permissions to the "repo":
1
chmod a+x ~/bin/repo
To add an environment variable:
1
Path=~/bin: $PATH
This gets the repo of the third party.
Second, the synchronization of Android source code
Also uses the foreigner own source, first enters the working directory:
1
[Email protected] ~]# CD ~/android/system/
Synchronous Source:
1
[Email protected] ~]# repo init-u git://codeaurora.org/platform/manifest.git-b Gingerbread
Start syncing:
1
[Email protected] ~]# repo sync-j16
See which branches are available
~/work/android_kernel/.repo/manifests.git$ git branch-a
Http://www.tuicool.com/articles/RjeEZb
Failed Android source code compilation