Ubuntu 9.10 에서 Android 원본 가 져 오기
먼저 개발 환경 을 설치 해 야 합 니 다.다음 과 같은 가방 이 필요 합 니 다.
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
$ sudo apt-get install valgrind
Ubuntu 9.10 의 설치 소스 는 JDK 5 가 없어 서 9.04 의 설치 소스 를 사용 해 야 합 니 다.
수정/etc/apt/sources.list 9.04 의 원본:deb http://run.hit.edu.cn/ubuntu/ jaunty main restricted universe multiversedeb-src http://run.hit.edu.cn/ubuntu/ jaunty main restricted universe multiversedeb http://run.hit.edu.cn/ubuntu/ jaunty-updates main restricted universe multiversedeb-src http://run.hit.edu.cn/ubuntu/ jaunty-updates main restricted universe multiversedeb http://run.hit.edu.cn/ubuntu/ jaunty-backports main restricted universe multiversedeb-src http://run.hit.edu.cn/ubuntu/ jaunty-backports main restricted universe multiversedeb http://run.hit.edu.cn/ubuntu/ jaunty-security main restricted universe multiversedeb-src http://run.hit.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse update 이후 sudo apt-get install sun-java5-jdk 를 사용 하면 자바 1.5 설치 후 기본 설정 을 설치 할 수 있 습 니 다.sudo update-alternatives-config 자바 sudo update-자바-alternatives-s 자바-1.5.0-sun 을 사용 하면 자바 1.5 가 정상적으로 작 동 하 는 것 을 볼 수 있 습 니 다.
다음은 repo 설치.
To install, initialize, and configure Repo, follow these steps:
$ chmod a+x ~/bin/repo
repo 초기 화
A successful initialization will end with a message such as repo initialized in /mydroid
Your client directory should now contain a .repo directory where files such as the manifest will be kept.
코드 가 져 오기
To pull down files to your working directory from the repositories as specified in the default manifest, run $ repo sync For more about repo sync and other Repo commands, see Using Repo and Git.The Android source files will be located in your working directory under their project names.
인증 코드
Load the following public key into your GnuPG key database. The key is used to sign annotated tags that represent releases. $ gpg --importthen paste the key(s) below, and press Control-D to end the input and process the keys. After importing the keys, you can verify any tag with $ git tag -v tagn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/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMX
LWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71MnrF6fj+Udtb5+
OgTg7Cow+8PRaTkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/M
pK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7s
KZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phb
N8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjA
vUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwo
G1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQ
hN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0l
EXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM=
=Wi5D
-----END PGP PUBLIC KEY BLOCK-----
To build the files, run make from within your working directory:
$ cd ~/mydroid
$ makeIf your build fails, complaining about a missing "run-java-tool", try setting the ANDROID_JAVA_HOME env var to $JAVA_HOME before making. E.g.,
$ export ANDROID_JAVA_HOME=$JAVA_HOME
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Is Eclipse IDE dying?In 2014 the Eclipse IDE is the leading development environment for Java with a market share of approximately 65%. but ac...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.