Some considerations for the "Go" android Source download process

Source: Internet
Author: User
Tags java se

Original URL: http://www.360doc.com/content/14/0113/11/11948835_344809459.shtml

Some other matters are explained:

1, in the source code download process, we do not see any files in the source code download directory, open "Show hidden", you will see a folder named. Repo, this folder is used to save the Android source code "temporary file"

2. When the final download of the file is nearing completion, the Android source code will be exported from the. Repo folder

3, Android source code download is complete, we can see the Android source code download directory will have

Bionic, bootable, build, CTS, Dalvik ... These folders, these are the Android source code

4, if you must shut down the computer to stop downloading, you can press CTRL + C or CTRL + Z to stop the source code download in the terminal of the source code download, will not cause loss or damage to the source code

5, the solution of related problems  5.1 download source code may prompt error  5.1.1error:exited sync due to fetch errors...  method one: Automatically or manually stop the source code download, You can use the command: Repo sync to continue downloading   method two: On this issue in fact, Google is a description of http://source.android.com/source/ Downloading.html, in order to prevent too many connections, each IP needs authentication ... The first step: From here  the password generator  get the user name and password, if you fill in your real name and mailbox before the second step: Copy the above page with machine beginning two lines to  ~/. NETRC file in the third step: Repo init-u https://android.googlesource.com/a/platform/manifest   A more "/a" and then you can repo Sync has paid special attention. netrc file is in the user's root directory, root user is/directory, if not, build one yourself, change permissions to *00 5.1.2 If this error occurs: Exited sync due to GC errors  This means that the code is basically downloaded and needs to be exported from repo, but Git's version is too low to support version 1.72. Add this source: Deb Http://ftp.de.debian.org/debian Sid Main. Execute in Terminal: Gedit/etc/apt/source.list at the end of the file add Deb Http://ftp.de.debian.org/debian Sid Main, and save exit back to Terminal execution: sudo apt-get After the update is complete, install the high version of the Git tool in the terminal: sudo apt-get install Git-core 5.1.3.repo Sync encountered error:......checkout .... followed by a bunch of hashnumber solution: into the directory it says prompt, use git status to display files, delete modified files, and then repo Sync 5.1.4.repo Sync encountered: Contains uncommitted Changes solution: In-processTo the directory where it says the hint, use the git reset--hard command  5.1.5. How to execute git command solution for all project under repo: Repo forall-c git checkout-b    //This command will perform a toggle Repo command for project under branch   5.1.6. How to switch to the branch solution you want: Git checkout branchname, such as Git checkout testbranch 5.2 installing the software for the build environment may be problematic   The following packages have unsatisfied dependencies: Libasound2: Destroy: Libasound2-plugins (< 1.0.24-0UBUNTU3) but 1.0.22-0ubuntu6 is about to be installed  libglib2.0-0: Damage: Gnome-control-center (< 1:3) but 1:2.30.0-0ubuntu4 is about to be installed &NBSP;PPP: Destruction: Network-manager (<= 0.8.0.999-1) but 0.8-0 Ubuntu3 is about to be installed E: Broken package Some source has a problem, for a high version of Ubuntu source, delete can, such as the installation of high-version git source is the source of Ubuntu 10.4, used in 10.04 can be problematic, caused this hint. Execute in Terminal: Gedit/etc/apt/source.list the last Deb Http://ftp.de.debian.org/debian Sid main to delete the file, and save the exit back to the terminal to execute: sudo apt-get Update re-installs the software  5.3 for the compiled environment, and the compilation may encounter problems:  5.3.1 after running the Make command, the following error is prompted:/bin/bash:java:command not Found first check if the JDK is actually installed, enter in the terminal: java-version, if there is a JDK installed, will display the JDK version information, the error indicates that the JDK is not installed, then install the JDK. After installing the JDK or prompting for the above error message, follow the instructions below to establish a link file to resolve the issue: sudo ln-s/jdk1.6.0_21/bin/jar ~/bin/jarsudo ln-s/Jdk1.6.0_21/bin/java ~/bin/javasudo ln-s/jdk1.6.0_21/bin/javac ~/bin/javacsudo ln-s/jdk1.6.0_21/bin/javah ~/bin/ Javahsudo ln-s/jdk1.6.0_21/bin/javadoc ~/bin/javadoc recompile If you are still prompted with the same error, then execute the following command: sudo ln-s/jdk1.6.0_21/bin/jar/bin/ Jarsudo ln-s/jdk1.6.0_21/bin/java/bin/javasudo ln-s/jdk1.6.0_21/bin/javac/bin/javacsudo ln-s/jdk1.6.0_21/bin/java H/bin/javahsudo ln-s/jdk1.6.0_21/bin/javadoc/bin/javadoc This Java problem should be resolved  5.3.2 compile the following error prompt:  ============ ================================ checking Build Tools versions... *************************************  you is attempting to build with the incorrect version of Java.  your Version Is:java version "1.6.0_24".  the correct version Is:java SE 1.6.  please follow the machine setup Instructions at     https://source.android.com/source/download.html ************************* &NBSP;BUILD/CORE/MAIN.MK:141: * * * sTop Stop it.   switch from the normal user login, and then modify the source Directory access rights: chmod 777 src  after running the compile command again to compile  5.3.3 no command ' lunch ' found, did you mean:  Workaround:  Run the following command:  source build/envsetup.sh  run the compile command again: lunch Full-eng or lunch full-user ........  5.4 Problems that may occur when you run the emulator:  no command ' emulator ' found, do you mean:  after compiling successfully, run the emulator command at the terminal, but prompt:   no Command ' emulator ' found, did your Mean: command ' Qemulator ' from the package ' Qemulator ' (universe)  emulator:comma nd not found  workaround:  rerun the following command:  source build/envsetup.sh lunch full-eng  run emulator again   Command

"Go" Some considerations of the Android source download process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.