1. 程式人生 > >android 4.3原始碼下載【自己下載成功的步驟、其中遇到很多你可能會遇到的很多問題】

android 4.3原始碼下載【自己下載成功的步驟、其中遇到很多你可能會遇到的很多問題】

[email protected]:~$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l

[email protected]:~$ sudo lsb_release -a
[sudo] password for jianguoliao: 
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.2 LTS
Release:	12.04
Codename:	precise
[email protected]:~$ 

上面位檢視自己的ubuntu的版本號:12.04

1、先是系統檢視是32位的還是64位

[email protected]:~$ getconf LONG_BIT
32
[email protected]:~$ getconf WORD_BIT
32
[email protected]:~$ file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xae048fd2a071afcb017d9091f4a78835e27340b2, stripped
[email protected]
70:~$ [email protected]:~$ [email protected]:~$ [email protected]:~$ uname -m i686 uname -m 如果出現i386 i686 i586則是32位 如果出現amd64 則是64位系統

2、安裝jdk1.6

方案一,可能會出現錯誤

Installing the JDK

The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.

Java 6: for Gingerbread and newer

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk


上面可能出現如下錯誤;

[email protected]:~$ sudo apt-get install sun-java6-jdk
正在讀取軟體包列表... 完成
正在分析軟體包的依賴關係樹       
正在讀取狀態資訊... 完成       
現在沒有可用的軟體包 sun-java6-jdk,但是它被其它的軟體包引用了。
這可能意味著這個缺失的軟體包可能已被廢棄,
或者只能在其他釋出源中找到

E: 軟體包 sun-java6-jdk 沒有可供安裝的候選者


方案二  建議採用下面這個方法,我12.04的ubuntu版本,64位的用官方網站用的第一種方法沒有成功

 sudo gedit /etc/apt/sources.list
開啟源列表,在最後一行新增

deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse   儲存退出。

2、sudo apt-get update
3、sudo apt-get install sun-java6-jdk
4、[email protected]:~$ sudo update-alternatives --config java
There is only one alternative in link group java: /usr/lib/jvm/java-6-sun/jre/bin/java
Nothing to configure.
5、[email protected]:~$ java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
[email protected]:~$ 


Installing required packages (Ubuntu 12.04)

Building on Ubuntu 12.04 is currently only experimentally supported and is notguaranteed to work on branches other than master.

$ sudo apt-get install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

3、安裝git

 sudo apt-get install git-core curl


 這條命令會從網際網路的軟體倉庫中安裝 git-core 和 curl

4、

Installing Repo

  1. Make sure you have a bin/ directory in your home directory and that it is included in your path:

    $ mkdir ~/bin
    $ PATH=~/bin:$PATH
    
  2. Download the Repo tool and ensure that it is executable:

    $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    $ chmod a+x ~/bin/repo

其中

[email protected]:~$  curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:04:00 --:--:--     0curl: (7) Failed to connect to 2404:6800:4005:c00::88: Network is unreachable

下面為兩種解決辦法,任何一種都可以

一、

curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" >~/bin/repo

二、
開啟 gedit /etc/hosts
新增如下內容:
74.125.237.1   dl-ssl.google.com

[email protected]:~$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22889  100 22889    0     0  20152      0  0:00:01  0:00:01 --:--:-- 24221
[email protected]:~$ 
chmod a+x ~/bin/repo

5、
Initializing a Repo client

$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY

$ repo init -u https://android.googlesource.com/platform/manifest

遇到如下問題:

[email protected]:~/WORKING_DIRECTORY$ repo init -u https://android.googlesource.com/platform/manifest
gpg: key 920F5C65: "Repo Maintainer <[email protected]>" not changed
gpg: key 338871A4: public key "Conley Owens <[email protected]>" imported
gpg: Total number processed: 2
gpg:               imported: 1  (RSA: 1)
gpg:              unchanged: 1


fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable

或者:
 * [new tag]         v1.9.5     -> v1.9.5
 * [new tag]         v1.9.6     -> v1.9.6
Get https://android.googlesource.com/platform/manifest
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 92, done
remote: Finding sources: 100% (92/92)
remote: Total 816 (delta 96), reused 816 (delta 96)
Receiving objects: 100% (816/816), 708.29 KiB | 247 KiB/s, done.
Resolving deltas: 100% (96/96), done.
From https://android.googlesource.com/platform/manifest
 * [new branch]      android-1.6_r1 -> origin/android-1.6_r1


解決方法,官網說明,和網上統一口徑,如下:

1,  先按官網的步驟一步步執行
2,當遇到上述問題後,用瀏覽器登入https://android.googlesource.com/new-password,並用gmail帳號登入;
3, 點選網頁上的“允許訪問”,得到類似的結果:
 
machine android.googlesource.com login git-<userName>.gmail.com password <password>
machine android-review.googlesource.com login git-<userName>.gmail.com password <password>
 將上邊的兩行追加到~/.netrc檔案結尾。(如果你的linux系統中從來沒有建立過此檔案,就在home目錄下建立.netrc檔案,將上面的資訊加到新建的檔案中去),
4,下載地址的URI更改為https://android.googlesource.com/a/platform/manifest(中間加上了“/a”)。
 
因為訪問基本是匿名的,為了防止連線過多,對同一IP地址的連線數做了一定的限制。用gmail帳號進行認證。
在公司網路內或者用虛擬機器下載的話,會經常遇到這問題。


如果遇到下面問題

[email protected]:~/WORKING_DIRECTORY$ 
[email protected]:~/WORKING_DIRECTORY$ repo init -u https://android.googlesource.com/a/platform/manifest --config

Your Name  [jianguo liao]: jianguo liao
Your Email [[email protected]]: [email protected]

Your identity is: jianguo liao <[email protected]>
is this correct [y/N]? y

repo has been initialized in /home/jianguoliao/WORKING_DIRECTORY

解決
[email protected]:~/WORKING_DIRECTORY$ repo init -u https://android.googlesource.com/platform/manifest

Your identity is: jianguo liao <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name


或者:注意沒有/a哦
[email protected]:~/WORKING_DIRECTORY$ repo init -u https://android.googlesource.com/platform/manifest --config

Your Name  [jianguo liao]: jianguo liao
Your Email [[email protected]]: [email protected]

Your identity is: jianguo liao <[email protected]>
is this correct [y/N]? y

repo has been initialized in /home/jianguoliao/WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ 


接著搞:

[email protected]:~/WORKING_DIRECTORY$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
.repo/manifests/: discarding 88 commits

Your identity is: jianguo liao <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/jianguoliao/WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ 


好吧,接下來最後一步了

$ repo sync

網上有朋友建議,寫個指令碼如下:
#!/bin/bash  
echo "======start repo sync======"  
repo sync  
while [ $? = 1 ]; do  
echo "======sync failed, re-sync again======"  
sleep 3  
repo sync  
done

其中還遇到如下問題,經常提示如下資訊,網上有朋友建議:

error: Failed connect to android.googlesource.com:443;Connection refused while accessinghttps://android.googlesource.com/a/platform/frameworks/base/info/refs

fatal: HTTP request failed

error: Cannot fetch platform/tools/motodev

error: Cannot fetch platform/frameworks/base

error: Cannot fetch platform/prebuilts/sdk 

error: Exited sync due to fetch errors

等錯誤資訊。

解決方法:編輯/etc/hosts檔案

 $ sudo gedit /etc/hosts

增加下面內容,儲存

74.125.71.82 www.googlesource.com

74.125.31.82 android.googlesource.com

203.208.46.172 cache.pack.google.com

59.24.3.173cache.pack.google.com


早上起來發現程式碼下載好了,happy下!

下載完後,你可以檢視最新所有的分子,下載你想要的比如最新的android source,比如4.3的程式碼

[email protected]:~/WORKING_DIRECTORY$ ls -al
total 92
drwxrwxr-x  21 jianguoliao jianguoliao 4096 Aug  9 04:11 .
drwxr-xr-x  30 jianguoliao jianguoliao 4096 Aug 11 08:16 ..
drwxrwxr-x   3 jianguoliao jianguoliao 4096 Aug  9 04:06 abi
drwxrwxr-x   9 jianguoliao jianguoliao 4096 Aug  9 04:06 bionic
drwxrwxr-x   5 jianguoliao jianguoliao 4096 Aug  9 04:06 bootable
drwxrwxr-x   7 jianguoliao jianguoliao 4096 Aug  9 04:06 build
drwxrwxr-x   8 jianguoliao jianguoliao 4096 Aug  9 04:06 cts
drwxrwxr-x  19 jianguoliao jianguoliao 4096 Aug  9 04:06 dalvik
drwxrwxr-x  20 jianguoliao jianguoliao 4096 Aug  9 04:06 development
drwxrwxr-x   8 jianguoliao jianguoliao 4096 Aug  9 04:06 device
drwxrwxr-x   3 jianguoliao jianguoliao 4096 Aug  9 04:06 docs
drwxrwxr-x 116 jianguoliao jianguoliao 4096 Aug  9 04:08 external
drwxrwxr-x   8 jianguoliao jianguoliao 4096 Aug  9 04:08 frameworks
drwxrwxr-x  10 jianguoliao jianguoliao 4096 Aug  9 04:08 hardware
drwxrwxr-x  12 jianguoliao jianguoliao 4096 Aug  9 04:09 libcore
-r--r--r--   1 jianguoliao jianguoliao   87 Aug  9 04:06 Makefile
drwxrwxr-x   8 jianguoliao jianguoliao 4096 Aug  9 04:09 ndk
drwxrwxr-x   7 jianguoliao jianguoliao 4096 Aug  9 04:09 packages
drwxrwxr-x  15 jianguoliao jianguoliao 4096 Aug  9 04:11 prebuilt
drwxrwxr-x   6 jianguoliao jianguoliao 4096 Aug  9 04:06 .repo
-rwxrwxrwx   1 jianguoliao jianguoliao  161 Aug  8 21:39 repo_sync.sh
drwxrwxr-x  39 jianguoliao jianguoliao 4096 Aug  9 04:11 sdk
drwxrwxr-x   8 jianguoliao jianguoliao 4096 Aug  9 04:11 system
[email protected]:~/WORKING_DIRECTORY$ cd .repo/
[email protected]:~/WORKING_DIRECTORY/.repo$ ls
manifests  manifests.git  manifest.xml  project.list  projects  repo
[email protected]:~/WORKING_DIRECTORY/.repo$ cd manifests
[email protected]:~/WORKING_DIRECTORY/.repo/manifests$ ls
default.xml
[email protected]:~/WORKING_DIRECTORY/.repo/manifests$ git branch -al
* default
  remotes/m/android-4.0.1_r1 -> origin/android-4.0.1_r1
  remotes/origin/android-1.6_r1
  remotes/origin/android-1.6_r1.1
  remotes/origin/android-1.6_r1.2
  remotes/origin/android-1.6_r1.3
  remotes/origin/android-1.6_r1.4
  remotes/origin/android-1.6_r1.5
  remotes/origin/android-1.6_r2
  remotes/origin/android-2.0.1_r1
  remotes/origin/android-2.0_r1
  remotes/origin/android-2.1_r1
  remotes/origin/android-2.1_r2
  remotes/origin/android-2.1_r2.1p
  remotes/origin/android-2.1_r2.1p2
  remotes/origin/android-2.1_r2.1s
  remotes/origin/android-2.2.1_r1
  remotes/origin/android-2.2.1_r2
  remotes/origin/android-2.2.2_r1
  remotes/origin/android-2.2.3_r1
  remotes/origin/android-2.2.3_r2
  remotes/origin/android-2.2.3_r2.1
  remotes/origin/android-2.2_r1
  remotes/origin/android-2.2_r1.1
  remotes/origin/android-2.2_r1.2
  remotes/origin/android-2.2_r1.3
  remotes/origin/android-2.3.1_r1
  remotes/origin/android-2.3.2_r1
  remotes/origin/android-2.3.3_r1
  remotes/origin/android-2.3.3_r1.1
  remotes/origin/android-2.3.4_r0.9
  remotes/origin/android-2.3.4_r1
  remotes/origin/android-2.3.5_r1
  remotes/origin/android-2.3.6_r0.9
  remotes/origin/android-2.3.6_r1
  remotes/origin/android-2.3.7_r1
  remotes/origin/android-2.3_r1
  remotes/origin/android-4.0.1_r1
  remotes/origin/android-4.0.1_r1.1
  remotes/origin/android-4.0.1_r1.2
  remotes/origin/android-4.0.2_r1
  remotes/origin/android-4.0.3_r1
  remotes/origin/android-4.0.3_r1.1
  remotes/origin/android-4.0.4_r1
  remotes/origin/android-4.0.4_r1.1
  remotes/origin/android-4.0.4_r1.2
  remotes/origin/android-4.0.4_r2
  remotes/origin/android-4.0.4_r2.1
  remotes/origin/android-4.1.1_r1
  remotes/origin/android-4.1.1_r1.1
  remotes/origin/android-4.1.1_r2
  remotes/origin/android-4.1.1_r3
  remotes/origin/android-4.1.1_r4
  remotes/origin/android-4.1.1_r5
  remotes/origin/android-4.1.1_r6
  remotes/origin/android-4.1.1_r6.1
  remotes/origin/android-4.1.2_r1
  remotes/origin/android-4.1.2_r2
  remotes/origin/android-4.1.2_r2.1
  remotes/origin/android-4.2.1_r1
  remotes/origin/android-4.2.1_r1.1
  remotes/origin/android-4.2.1_r1.2
  remotes/origin/android-4.2.2_r1
  remotes/origin/android-4.2.2_r1.1
  remotes/origin/android-4.2.2_r1.2
  remotes/origin/android-4.2.2_r1.2b
  remotes/origin/android-4.2_r1
  remotes/origin/android-4.3_r0.9
  remotes/origin/android-4.3_r0.9.1
  remotes/origin/android-4.3_r1
  remotes/origin/android-4.3_r2
  remotes/origin/android-4.3_r2.1
  remotes/origin/android-cts-2.2_r8
  remotes/origin/android-cts-2.3_r10
  remotes/origin/android-cts-2.3_r11
  remotes/origin/android-cts-2.3_r12
  remotes/origin/android-cts-4.0.3_r1
  remotes/origin/android-cts-4.0.3_r2
  remotes/origin/android-cts-4.0_r1
  remotes/origin/android-cts-4.1_r1
  remotes/origin/android-cts-4.1_r2
  remotes/origin/android-cts-4.2_r2
  remotes/origin/android-cts-verifier-4.0.3_r1
  remotes/origin/android-cts-verifier-4.0_r1
  remotes/origin/android-sdk-4.0.3-tools_r1
  remotes/origin/android-sdk-4.0.3_r1
  remotes/origin/android-sdk-adt_r16.0.1
  remotes/origin/android-sdk-adt_r20
  remotes/origin/android-sdk-support_r11
  remotes/origin/froyo
  remotes/origin/gingerbread
  remotes/origin/gingerbread-release
  remotes/origin/ics-mr0
  remotes/origin/ics-mr1
  remotes/origin/ics-plus-aosp
  remotes/origin/jb-dev
  remotes/origin/jb-mr1-dev
  remotes/origin/jb-mr1-dev-plus-aosp
  remotes/origin/jb-mr1.1-dev
  remotes/origin/jb-mr1.1-dev-plus-aosp
  remotes/origin/jb-mr2-dev
  remotes/origin/jumper-stable
  remotes/origin/master
  remotes/origin/master-dalvik
  remotes/origin/tools_r20
  remotes/origin/tools_r21
  remotes/origin/tools_r21.1
  remotes/origin/tools_r22
  remotes/origin/tradefed


接下來我們下載4.3最新程式碼,其中遇到“cannot make .repo directory: Permission denied”看我怎麼解決的,如果你是root使用者不會有這個問題,就是許可權問題

[email protected]:~$ cd android_source/
[email protected]:~/android_source$ ls
[email protected]:~/android_source$  repo init -u https://android.googlesource.com/platform/manifest
fatal: cannot make .repo directory: Permission denied
[email protected]:~/android_source$ chmod a+x ~/bin/repo
[email protected]:~/android_source$ PATH=~/bin:$PATH
[email protected]:~/android_source$ repo init -u https://android.googlesource.com/platform/manifest
fatal: cannot make .repo directory: Permission denied
[email protected]:~/android_source$ sudo chown -R jianguoliao:jianguoliao ./
[sudo] password for jianguoliao: 
[email protected]:~/android_source$ repo init -u https://android.googlesource.com/platform/manifest
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 101, done
remote: Finding sources: 100% (101/101)
remote: Total 2533 (delta 1442), reused 2533 (delta 1442)
Receiving objects: 100% (2533/2533), 1.71 MiB | 912 KiB/s, done.
Resolving deltas: 100% (1442/1442), done.
From https://gerrit.googlesource.com/git-repo
 * [new branch]      maint      -> origin/maint
 * [new branch]      master     -> origin/master
 * [new branch]      stable     -> origin/stable
 * [new tag]         v1.0       -> v1.0
 * [new tag]         v1.0.1     -> v1.0.1
 * [new tag]         v1.0.2     -> v1.0.2
 * [new tag]         v1.0.3     -> v1.0.3
 * [new tag]         v1.0.4     -> v1.0.4
 * [new tag]         v1.0.5     -> v1.0.5
 * [new tag]         v1.0.6     -> v1.0.6
 * [new tag]         v1.0.7     -> v1.0.7
 * [new tag]         v1.0.8     -> v1.0.8
 * [new tag]         v1.0.9     -> v1.0.9
 * [new tag]         v1.1       -> v1.1
 * [new tag]         v1.10.0    -> v1.10.0
 * [new tag]         v1.10.1    -> v1.10.1
 * [new tag]         v1.10.2    -> v1.10.2
 * [new tag]         v1.10.3    -> v1.10.3
 * [new tag]         v1.10.4    -> v1.10.4
 * [new tag]         v1.11.0    -> v1.11.0
 * [new tag]         v1.11.1    -> v1.11.1
 * [new tag]         v1.12.0    -> v1.12.0
 * [new tag]         v1.12.1    -> v1.12.1
 * [new tag]         v1.12.2    -> v1.12.2
 * [new tag]         v1.2       -> v1.2
 * [new tag]         v1.3       -> v1.3
 * [new tag]         v1.3.1     -> v1.3.1
 * [new tag]         v1.3.2     -> v1.3.2
 * [new tag]         v1.4       -> v1.4
 * [new tag]         v1.4.1     -> v1.4.1
 * [new tag]         v1.4.2     -> v1.4.2
 * [new tag]         v1.4.3     -> v1.4.3
 * [new tag]         v1.4.4     -> v1.4.4
 * [new tag]         v1.5       -> v1.5
 * [new tag]         v1.5.1     -> v1.5.1
 * [new tag]         v1.6       -> v1.6
 * [new tag]         v1.6.1     -> v1.6.1
 * [new tag]         v1.6.10    -> v1.6.10
 * [new tag]         v1.6.10.1  -> v1.6.10.1
 * [new tag]         v1.6.10.2  -> v1.6.10.2
 * [new tag]         v1.6.2     -> v1.6.2
 * [new tag]         v1.6.3     -> v1.6.3
 * [new tag]         v1.6.4     -> v1.6.4
 * [new tag]         v1.6.5     -> v1.6.5
 * [new tag]         v1.6.6     -> v1.6.6
 * [new tag]         v1.6.7     -> v1.6.7
 * [new tag]         v1.6.7.1   -> v1.6.7.1
 * [new tag]         v1.6.7.2   -> v1.6.7.2
 * [new tag]         v1.6.7.3   -> v1.6.7.3
 * [new tag]         v1.6.7.4   -> v1.6.7.4
 * [new tag]         v1.6.7.5   -> v1.6.7.5
 * [new tag]         v1.6.8     -> v1.6.8
 * [new tag]         v1.6.8.1   -> v1.6.8.1
 * [new tag]         v1.6.8.10  -> v1.6.8.10
 * [new tag]         v1.6.8.11  -> v1.6.8.11
 * [new tag]         v1.6.8.2   -> v1.6.8.2
 * [new tag]         v1.6.8.3   -> v1.6.8.3
 * [new tag]         v1.6.8.4   -> v1.6.8.4
 * [new tag]         v1.6.8.5   -> v1.6.8.5
 * [new tag]         v1.6.8.6   -> v1.6.8.6
 * [new tag]         v1.6.8.7   -> v1.6.8.7
 * [new tag]         v1.6.8.8   -> v1.6.8.8
 * [new tag]         v1.6.8.9   -> v1.6.8.9
 * [new tag]         v1.6.9     -> v1.6.9
 * [new tag]         v1.6.9.1   -> v1.6.9.1
 * [new tag]         v1.6.9.2   -> v1.6.9.2
 * [new tag]         v1.6.9.3   -> v1.6.9.3
 * [new tag]         v1.6.9.4   -> v1.6.9.4
 * [new tag]         v1.6.9.5   -> v1.6.9.5
 * [new tag]         v1.6.9.6   -> v1.6.9.6
 * [new tag]         v1.6.9.7   -> v1.6.9.7
 * [new tag]         v1.6.9.8   -> v1.6.9.8
 * [new tag]         v1.7       -> v1.7
 * [new tag]         v1.7.1     -> v1.7.1
 * [new tag]         v1.7.2     -> v1.7.2
 * [new tag]         v1.7.3     -> v1.7.3
 * [new tag]         v1.7.3.1   -> v1.7.3.1
 * [new tag]         v1.7.4     -> v1.7.4
 * [new tag]         v1.7.4.1   -> v1.7.4.1
 * [new tag]         v1.7.4.2   -> v1.7.4.2
 * [new tag]         v1.7.4.3   -> v1.7.4.3
 * [new tag]         v1.7.5     -> v1.7.5
 * [new tag]         v1.7.6     -> v1.7.6
 * [new tag]         v1.7.6.1   -> v1.7.6.1
 * [new tag]         v1.7.7     -> v1.7.7
 * [new tag]         v1.7.7.1   -> v1.7.7.1
 * [new tag]         v1.7.7.2   -> v1.7.7.2
 * [new tag]         v1.7.7.3   -> v1.7.7.3
 * [new tag]         v1.7.7.4   -> v1.7.7.4
 * [new tag]         v1.7.7.5   -> v1.7.7.5
 * [new tag]         v1.7.7.6   -> v1.7.7.6
 * [new tag]         v1.7.8     -> v1.7.8
 * [new tag]         v1.7.8.1   -> v1.7.8.1
 * [new tag]         v1.7.8.2   -> v1.7.8.2
 * [new tag]         v1.8.0     -> v1.8.0
 * [new tag]         v1.8.1     -> v1.8.1
 * [new tag]         v1.8.2     -> v1.8.2
 * [new tag]         v1.9.0     -> v1.9.0
 * [new tag]         v1.9.1     -> v1.9.1
 * [new tag]         v1.9.2     -> v1.9.2
 * [new tag]         v1.9.3     -> v1.9.3
 * [new tag]         v1.9.4     -> v1.9.4
 * [new tag]         v1.9.5     -> v1.9.5
 * [new tag]         v1.9.6     -> v1.9.6
Get https://android.googlesource.com/platform/manifest
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 92, done
remote: Finding sources: 100% (92/92)
remote: Total 816 (delta 96), reused 816 (delta 96)
Receiving objects: 100% (816/816), 708.29 KiB | 926 KiB/s, done.
Resolving deltas: 100% (96/96), done.
From https://android.googlesource.com/platform/manifest
 * [new branch]      android-1.6_r1 -> origin/android-1.6_r1
 * [new branch]      android-1.6_r1.1 -> origin/android-1.6_r1.1
 * [new branch]      android-1.6_r1.2 -> origin/android-1.6_r1.2
 * [new branch]      android-1.6_r1.3 -> origin/android-1.6_r1.3
 * [new branch]      android-1.6_r1.4 -> origin/android-1.6_r1.4
 * [new branch]      android-1.6_r1.5 -> origin/android-1.6_r1.5
 * [new branch]      android-1.6_r2 -> origin/android-1.6_r2
 * [new branch]      android-2.0.1_r1 -> origin/android-2.0.1_r1
 * [new branch]      android-2.0_r1 -> origin/android-2.0_r1
 * [new branch]      android-2.1_r1 -> origin/android-2.1_r1
 * [new branch]      android-2.1_r2 -> origin/android-2.1_r2
 * [new branch]      android-2.1_r2.1p -> origin/android-2.1_r2.1p
 * [new branch]      android-2.1_r2.1p2 -> origin/android-2.1_r2.1p2
 * [new branch]      android-2.1_r2.1s -> origin/android-2.1_r2.1s
 * [new branch]      android-2.2.1_r1 -> origin/android-2.2.1_r1
 * [new branch]      android-2.2.1_r2 -> origin/android-2.2.1_r2
 * [new branch]      android-2.2.2_r1 -> origin/android-2.2.2_r1
 * [new branch]      android-2.2.3_r1 -> origin/android-2.2.3_r1
 * [new branch]      android-2.2.3_r2 -> origin/android-2.2.3_r2
 * [new branch]      android-2.2.3_r2.1 -> origin/android-2.2.3_r2.1
 * [new branch]      android-2.2_r1 -> origin/android-2.2_r1
 * [new branch]      android-2.2_r1.1 -> origin/android-2.2_r1.1
 * [new branch]      android-2.2_r1.2 -> origin/android-2.2_r1.2
 * [new branch]      android-2.2_r1.3 -> origin/android-2.2_r1.3
 * [new branch]      android-2.3.1_r1 -> origin/android-2.3.1_r1
 * [new branch]      android-2.3.2_r1 -> origin/android-2.3.2_r1
 * [new branch]      android-2.3.3_r1 -> origin/android-2.3.3_r1
 * [new branch]      android-2.3.3_r1.1 -> origin/android-2.3.3_r1.1
 * [new branch]      android-2.3.4_r0.9 -> origin/android-2.3.4_r0.9
 * [new branch]      android-2.3.4_r1 -> origin/android-2.3.4_r1
 * [new branch]      android-2.3.5_r1 -> origin/android-2.3.5_r1
 * [new branch]      android-2.3.6_r0.9 -> origin/android-2.3.6_r0.9
 * [new branch]      android-2.3.6_r1 -> origin/android-2.3.6_r1
 * [new branch]      android-2.3.7_r1 -> origin/android-2.3.7_r1
 * [new branch]      android-2.3_r1 -> origin/android-2.3_r1
 * [new branch]      android-4.0.1_r1 -> origin/android-4.0.1_r1
 * [new branch]      android-4.0.1_r1.1 -> origin/android-4.0.1_r1.1
 * [new branch]      android-4.0.1_r1.2 -> origin/android-4.0.1_r1.2
 * [new branch]      android-4.0.2_r1 -> origin/android-4.0.2_r1
 * [new branch]      android-4.0.3_r1 -> origin/android-4.0.3_r1
 * [new branch]      android-4.0.3_r1.1 -> origin/android-4.0.3_r1.1
 * [new branch]      android-4.0.4_r1 -> origin/android-4.0.4_r1
 * [new branch]      android-4.0.4_r1.1 -> origin/android-4.0.4_r1.1
 * [new branch]      android-4.0.4_r1.2 -> origin/android-4.0.4_r1.2
 * [new branch]      android-4.0.4_r2 -> origin/android-4.0.4_r2
 * [new branch]      android-4.0.4_r2.1 -> origin/android-4.0.4_r2.1
 * [new branch]      android-4.1.1_r1 -> origin/android-4.1.1_r1
 * [new branch]      android-4.1.1_r1.1 -> origin/android-4.1.1_r1.1
 * [new branch]      android-4.1.1_r2 -> origin/android-4.1.1_r2
 * [new branch]      android-4.1.1_r3 -> origin/android-4.1.1_r3
 * [new branch]      android-4.1.1_r4 -> origin/android-4.1.1_r4
 * [new branch]      android-4.1.1_r5 -> origin/android-4.1.1_r5
 * [new branch]      android-4.1.1_r6 -> origin/android-4.1.1_r6
 * [new branch]      android-4.1.1_r6.1 -> origin/android-4.1.1_r6.1
 * [new branch]      android-4.1.2_r1 -> origin/android-4.1.2_r1
 * [new branch]      android-4.1.2_r2 -> origin/android-4.1.2_r2
 * [new branch]      android-4.1.2_r2.1 -> origin/android-4.1.2_r2.1
 * [new branch]      android-4.2.1_r1 -> origin/android-4.2.1_r1
 * [new branch]      android-4.2.1_r1.1 -> origin/android-4.2.1_r1.1
 * [new branch]      android-4.2.1_r1.2 -> origin/android-4.2.1_r1.2
 * [new branch]      android-4.2.2_r1 -> origin/android-4.2.2_r1
 * [new branch]      android-4.2.2_r1.1 -> origin/android-4.2.2_r1.1
 * [new branch]      android-4.2.2_r1.2 -> origin/android-4.2.2_r1.2
 * [new branch]      android-4.2.2_r1.2b -> origin/android-4.2.2_r1.2b
 * [new branch]      android-4.2_r1 -> origin/android-4.2_r1
 * [new branch]      android-4.3_r0.9 -> origin/android-4.3_r0.9
 * [new branch]      android-4.3_r0.9.1 -> origin/android-4.3_r0.9.1
 * [new branch]      android-4.3_r1 -> origin/android-4.3_r1
 * [new branch]      android-4.3_r2 -> origin/android-4.3_r2
 * [new branch]      android-4.3_r2.1 -> origin/android-4.3_r2.1
 * [new branch]      android-cts-2.2_r8 -> origin/android-cts-2.2_r8
 * [new branch]      android-cts-2.3_r10 -> origin/android-cts-2.3_r10
 * [new branch]      android-cts-2.3_r11 -> origin/android-cts-2.3_r11
 * [new branch]      android-cts-2.3_r12 -> origin/android-cts-2.3_r12
 * [new branch]      android-cts-4.0.3_r1 -> origin/android-cts-4.0.3_r1
 * [new branch]      android-cts-4.0.3_r2 -> origin/android-cts-4.0.3_r2
 * [new branch]      android-cts-4.0_r1 -> origin/android-cts-4.0_r1
 * [new branch]      android-cts-4.1_r1 -> origin/android-cts-4.1_r1
 * [new branch]      android-cts-4.1_r2 -> origin/android-cts-4.1_r2
 * [new branch]      android-cts-4.2_r2 -> origin/android-cts-4.2_r2
 * [new branch]      android-cts-verifier-4.0.3_r1 -> origin/android-cts-verifier-4.0.3_r1
 * [new branch]      android-cts-verifier-4.0_r1 -> origin/android-cts-verifier-4.0_r1
 * [new branch]      android-sdk-4.0.3-tools_r1 -> origin/android-sdk-4.0.3-tools_r1
 * [new branch]      android-sdk-4.0.3_r1 -> origin/android-sdk-4.0.3_r1
 * [new branch]      android-sdk-adt_r16.0.1 -> origin/android-sdk-adt_r16.0.1
 * [new branch]      android-sdk-adt_r20 -> origin/android-sdk-adt_r20
 * [new branch]      android-sdk-support_r11 -> origin/android-sdk-support_r11
 * [new branch]      froyo      -> origin/froyo
 * [new branch]      gingerbread -> origin/gingerbread
 * [new branch]      gingerbread-release -> origin/gingerbread-release
 * [new branch]      ics-mr0    -> origin/ics-mr0
 * [new branch]      ics-mr1    -> origin/ics-mr1
 * [new branch]      ics-plus-aosp -> origin/ics-plus-aosp
 * [new branch]      jb-dev     -> origin/jb-dev
 * [new branch]      jb-mr1-dev -> origin/jb-mr1-dev
 * [new branch]      jb-mr1-dev-plus-aosp -> origin/jb-mr1-dev-plus-aosp
 * [new branch]      jb-mr1.1-dev -> origin/jb-mr1.1-dev
 * [new branch]      jb-mr1.1-dev-plus-aosp -> origin/jb-mr1.1-dev-plus-aosp
 * [new branch]      jb-mr2-dev -> origin/jb-mr2-dev
 * [new branch]      jumper-stable -> origin/jumper-stable
 * [new branch]      master     -> origin/master
 * [new branch]      master-dalvik -> origin/master-dalvik
 * [new branch]      tools_r20  -> origin/tools_r20
 * [new branch]      tools_r21  -> origin/tools_r21
 * [new branch]      tools_r21.1 -> origin/tools_r21.1
 * [new branch]      tools_r22  -> origin/tools_r22
 * [new branch]      tradefed   -> origin/tradefed
 * [new tag]         android-1.6_r1.1_ -> android-1.6_r1.1_
 * [new tag]         android-1.6_r1.2_ -> android-1.6_r1.2_
 * [new tag]         android-1.6_r1.3_ -> android-1.6_r1.3_
 * [new tag]         android-1.6_r1.4_ -> android-1.6_r1.4_
 * [new tag]         android-1.6_r1.5_ -> android-1.6_r1.5_
 * [new tag]         android-1.6_r1_ -> android-1.6_r1_
 * [new tag]         android-1.6_r2_ -> android-1.6_r2_
 * [new tag]         android-2.0.1_r1_ -> android-2.0.1_r1_
 * [new tag]         android-2.0_r1_ -> android-2.0_r1_
 * [new tag]         android-2.1_r1_ -> android-2.1_r1_
 * [new tag]         android-2.1_r2.1p2_ -> android-2.1_r2.1p2_
 * [new tag]         android-2.1_r2.1p_ -> android-2.1_r2.1p_
 * [new tag]         android-2.1_r2.1s_ -> android-2.1_r2.1s_
 * [new tag]         android-2.1_r2_ -> android-2.1_r2_
 * [new tag]         android-2.2.1_r1_ -> android-2.2.1_r1_
 * [new tag]         android-2.2.1_r2_ -> android-2.2.1_r2_
 * [new tag]         android-2.2.2_r1_ -> android-2.2.2_r1_
 * [new tag]         android-2.2.3_r1 -> android-2.2.3_r1
 * [new tag]         android-2.2.3_r2 -> android-2.2.3_r2
 * [new tag]         android-2.2.3_r2.1 -> android-2.2.3_r2.1
 * [new tag]         android-2.2_r1.1_ -> android-2.2_r1.1_
 * [new tag]         android-2.2_r1.2_ -> android-2.2_r1.2_
 * [new tag]         android-2.2_r1.3_ -> android-2.2_r1.3_
 * [new tag]         android-2.2_r1_ -> android-2.2_r1_
 * [new tag]         android-2.3.1_r1_ -> android-2.3.1_r1_
 * [new tag]         android-2.3.2_r1_ -> android-2.3.2_r1_
 * [new tag]         android-2.3.3_r1.1_ -> android-2.3.3_r1.1_
 * [new tag]         android-2.3.3_r1_ -> android-2.3.3_r1_
 * [new tag]         android-2.3.4_r0.9_ -> android-2.3.4_r0.9_
 * [new tag]         android-2.3.4_r1_ -> android-2.3.4_r1_
 * [new tag]         android-2.3.5_r1_ -> android-2.3.5_r1_
 * [new tag]         android-2.3.6_r0.9 -> android-2.3.6_r0.9
 * [new tag]         android-2.3.6_r1 -> android-2.3.6_r1
 * [new tag]         android-2.3.7_r1 -> android-2.3.7_r1
 * [new tag]         android-2.3_r1_ -> android-2.3_r1_
 * [new tag]         android-4.0.1_r1 -> android-4.0.1_r1
 * [new tag]         android-4.0.1_r1.1 -> android-4.0.1_r1.1
 * [new tag]         android-4.0.1_r1.2 -> android-4.0.1_r1.2
 * [new tag]         android-4.0.2_r1 -> android-4.0.2_r1
 * [new tag]         android-4.0.3_r1 -> android-4.0.3_r1
 * [new tag]         android-4.0.3_r1.1 -> android-4.0.3_r1.1
 * [new tag]         android-4.0.4_r1 -> android-4.0.4_r1
 * [new tag]         android-4.0.4_r1.1 -> android-4.0.4_r1.1
 * [new tag]         android-4.0.4_r1.2 -> android-4.0.4_r1.2
 * [new tag]         android-4.0.4_r2 -> android-4.0.4_r2
 * [new tag]         android-4.0.4_r2.1 -> android-4.0.4_r2.1
 * [new tag]         android-4.1.1_r1 -> android-4.1.1_r1
 * [new tag]         android-4.1.1_r1.1 -> android-4.1.1_r1.1
 * [new tag]         android-4.1.1_r1_ -> android-4.1.1_r1_
 * [new tag]         android-4.1.1_r2 -> android-4.1.1_r2
 * [new tag]         android-4.1.1_r3 -> android-4.1.1_r3
 * [new tag]         android-4.1.1_r4 -> android-4.1.1_r4
 * [new tag]         android-4.1.1_r5 -> android-4.1.1_r5
 * [new tag]         android-4.1.1_r6 -> android-4.1.1_r6
 * [new tag]         android-4.1.1_r6.1 -> android-4.1.1_r6.1
 * [new tag]         android-4.1.2_r1 -> android-4.1.2_r1
 * [new tag]         android-4.1.2_r2 -> android-4.1.2_r2
 * [new tag]         android-4.1.2_r2.1 -> android-4.1.2_r2.1
 * [new tag]         android-4.2.1_r1.1 -> android-4.2.1_r1.1
 * [new tag]         android-4.2.1_r1.2 -> android-4.2.1_r1.2
 * [new tag]         android-4.2.1_r1__ -> android-4.2.1_r1__
 * [new tag]         android-4.2.2_r1.1 -> android-4.2.2_r1.1
 * [new tag]         android-4.2.2_r1.2 -> android-4.2.2_r1.2
 * [new tag]         android-4.2.2_r1_ -> android-4.2.2_r1_
 * [new tag]         android-4.2_r1___ -> android-4.2_r1___
 * [new tag]         android-4.3_r0.9 -> android-4.3_r0.9
 * [new tag]         android-4.3_r0.9.1 -> android-4.3_r0.9.1
 * [new tag]         android-4.3_r0.9.1_ -> android-4.3_r0.9.1_
 * [new tag]         android-4.3_r0.9_ -> android-4.3_r0.9_
 * [new tag]         android-4.3_r1 -> android-4.3_r1
 * [new tag]         android-4.3_r1_ -> android-4.3_r1_
 * [new tag]         android-4.3_r2 -> android-4.3_r2
 * [new tag]         android-4.3_r2.1_ -> android-4.3_r2.1_
 * [new tag]         android-4.3_r2.1__ -> android-4.3_r2.1__
 * [new tag]         android-4.3_r2_ -> android-4.3_r2_
 * [new tag]         android-cts-2.2_r8 -> android-cts-2.2_r8
 * [new tag]         android-cts-2.3_r10 -> android-cts-2.3_r10
 * [new tag]         android-cts-2.3_r11 -> android-cts-2.3_r11
 * [new tag]         android-cts-2.3_r12 -> android-cts-2.3_r12
 * [new tag]         android-cts-4.0.3_r1 -> android-cts-4.0.3_r1
 * [new tag]         android-cts-4.0.3_r2 -> android-cts-4.0.3_r2
 * [new tag]         android-cts-4.0_r1 -> android-cts-4.0_r1
 * [new tag]         android-cts-4.1_r1 -> android-cts-4.1_r1
 * [new tag]         android-cts-4.1_r2 -> android-cts-4.1_r2
 * [new tag]         android-cts-4.2_r2 -> android-cts-4.2_r2
 * [new tag]         android-cts-verifier-4.0.3_r1 -> android-cts-verifier-4.0.3_r1
 * [new tag]         android-cts-verifier-4.0_r1 -> android-cts-verifier-4.0_r1
 * [new tag]         android-sdk-4.0.3-tools_r1 -> android-sdk-4.0.3-tools_r1
 * [new tag]         android-sdk-4.0.3_r1 -> android-sdk-4.0.3_r1
 * [new tag]         android-sdk-adt_r16.0.1 -> android-sdk-adt_r16.0.1
 * [new tag]         android-sdk-adt_r20 -> android-sdk-adt_r20
 * [new tag]         android-sdk-support_r11 -> android-sdk-support_r11

Your identity is: jianguo liao <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/jianguoliao/android_source
[email protected]:~/android_source$ 
[email protected]:~/android_source$ 
[email protected]:~/android_source$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r2.1
.repo/manifests/: discarding 1 commits

Your identity is: jianguo liao <[email protected]>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/jianguoliao/android_source
[email protected]:~/android_source$ 
[email protected]:~/android_source$ 
[email protected]:~/android_source$ touch repo_sync.sh
[email protected]:~/android_source$ gedit repo_sync.sh 
[email protected]:~/android_source$ 


[email protected]:~/android_source$ chmod 777 repo_sync.sh


執行指令碼:./repo_sync.sh 就ok了,下面就是下載了,等待吧,呵呵

[email protected]:~/android_source$ 
[email protected]:~/android_source$ ls
repo_sync.sh  repo_sync.sh~
[email protected]:~/android_source$ ./repo_sync.sh 
======start repo sync======
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                    %     To   t  a l        D lo%ad   ReUpcleoadiv e  dTot %a l X  Sfeprentd      ALvefet  raSpgeede 
 ed 0       Ti 0m e    0     T   im0 e   0     0      0      0 --:--:-- --: -- :- -  - -:-Ti-:-me-      C 0urrent
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:- -  --%:- -T:-o- t  a  l0    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     1  100     1    0     0      3      0 --:--:-- --:--:-- --:--:--     5
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 48, done
remote: Finding sources: 100% (48/48)
remote: Counting objects: 87, done
remote: Total 83 (delta 18), reused 83 (delta 18)
remote: Finding sources: 100% (87/87)
Unpacking objects: 100% (83/83), done.
From https://android.googlesource.com/platform/abi/cpp
 * [new branch]      ics-factoryrom-2-release -> aosp/ics-factoryrom-2-release
 * [new branch]      ics-mr0    -> aosp/ics-mr0
 * [new branch]      ics-mr0-release -> aosp/ics-mr0-release
 * [new branch]      ics-mr1    -> aosp/ics-mr1
 * [new branch]      ics-mr1-release -> aosp/ics-mr1-release


這個看上去好舒服

Fetching projects: 100% (362/362), done.  
Checking out files: 100% (18349/18349), done. files:  31% (5855/18349)   
Checking out files: 100% (5465/5465), done.out files:  31% (1702/5465)   
Checking out files: 100% (7363/7363), done.out files:  20% (1539/7363)   
Checking out files: 100% (5403/5403), done.out files:  36% (1980/5403)   
Checking out files: 100% (10532/10532), done.ut files:  25% (2637/10532)   
Checking out files: 100% (24603/24603), done.ut files:  40% (10050/24603)   
Checking out files: 100% (19709/19709), done.ut files:   9% (1857/19709)   
Checking out files: 100% (4406/4406), done. out files:  39% (1746/4406)   
Checking out files: 100% (7394/7394), done.
Checking out files: 100% (1774/1774), done. out files:  11% (211/1774)   
Checking out files: 100% (1386/1386), done. out files:  32% (450/1386)   
Checking out files: 100% (108/108), done.ng out files:  49% (53/108)   
Checking out files: 100% (431/431), done.ng out files:  10% (45/431)   
Checking out files: 100% (150/150), done.
Checking out files: 100% (175/175), done.ng out files:  43% (76/175)   
Checking out files: 100% (181/181), done.
Checking out files: 100% (192/192), done.ng out files:  12% (24/192)   
Checking out files: 100% (378/378), done.
Checking out files: 100% (151/151), done.ng out files:  11% (17/151)   
Checking out files: 100% (2407/2407), done.
Checking out files: 100% (2482/2482), done.
Checking out files: 100% (2484/2484), done. out files:  36% (901/2484)   
Checking out files: 100% (177/177), done.
Checking out files: 100% (182/182), done.
Checking out files: 100% (137/137), done.
Checking out files: 100% (193/193), done.ng out files:   4% (8/193)   
Checking out files: 100% (37353/37353), done.
Checking out files: 100% (26/26), done.
Checking out files: 100% (158/158), done.ng out files:   1% (2/158)   
Checking out files: 100% (1141/1141), done.
Checking out files: 100% (3149/3149), done.
Syncing work tree: 100% (362/362), done.  

[email protected]:~/android_source$ 
[email protected]:~/android_source$ 


相關推薦

android 4.3原始碼下載自己下載成功步驟其中遇到很多可能遇到的很多問題

[email protected]:~$ cat /etc/issue Ubuntu 12.04.2 LTS \n \l [email protected]:~$ sudo lsb_release -a [sudo] password for jia

android 2.3原始碼下載

系統:Ubuntu 12.04 64 下載的步驟很簡單,其實就官方那幾步, $ mkdir ~/bin $ PATH=~/bin:$PATH$ curl http://commondatastorage.googleapis.com/git-repo-downloads

Android Studio 3.0 及個版本下載和 gradle 各版本下載

Android Studio 3.0下載地址:Android Studio 3.0 包含了三大主要功能:一套全新的應用效能分析工具,用於快速診斷效能問題;支援 Kotlin 程式語言;加快大規模應用專案

Android 4.3 系統裁剪——刪除不使用的app及增加自己app

刪除不使用的apk 系統自帶的app位置是在/android4.3/packages/apps 下面是一些APP作用分析: | |– BasicSmsReceiver | |– Bluetooth (藍芽) |

Android Studio工程如何放到Android 4.X原始碼環境中編譯

        現有專案需要用到RecyclerView、Leanback、Cardview等一些比較新的Support庫,且用來編譯的buildToolsVersion已經需要用到最新的23.0.1,targetSdkVersion是23。         之前嘗試在Ec

Android 4.3系統so庫報錯

我的app最小sdk設定14 全部sdk版本測試就4.3系統有時會報錯。而且很多4.3機型都會出現,大神們看看這是什麼錯誤,下面是錯誤資訊:Build fingerprint: 'samsung/h3gduosctc/hlte:4.3/JSS15J/N9009KEUDNB1

Android(2.3+)原始碼分析MediaPlayer之RTSP

在前面的部落格中有簡單介紹MediaPlayer,最近又開始研究這塊東西,在此把閱讀程式碼的理解記錄下來方便以後快速查閱。 播放普通檔案傳入的url是一個本地的絕對路徑,但是流媒體的話傳入的就是一個網路地址如以"http://“開頭的流媒體和以"rtsp://"開頭的流媒體

編譯Android 2.3原始碼錯誤總結

雖然版本2.3很老了,但是這是在完全新的Ubuntu上面編譯的,可以使我們更加熟練. 1. host C: acp <= build/tools/acp/acp.c <command-line>:0:0: warning: "_FORTIFY_SOURCE

Android 4.1原始碼編譯找不到資原始檔解決辦法

我們在Android framework中修改資原始檔時,在Android 4.0之前,都是直接在sourcecode/frameworks/base/core/res/res下面新增對應的資原始檔,然後編譯framework-res即可,但是這種情況到了Android

redhat linux 6.1/6.0 映象資源下載高速下載

紅帽在5月19日宣佈釋出其企業級Linux 6.1的正式版(RHEL 6.1)。該版本的Beta已經在今年3月23日放出。 RHEL 6.1是紅帽企業級Linux 6.0系列的第一次更新(注:RHEL 6.0在2010年11月釋出),除了效能改進之外,還包含如

Android 4.0原始碼目錄結構

Android 4.0|-- Makefile|-- bionic (bionic C庫)|-- bootable (啟動引導相關程式碼)|-- build (存放系統編譯規則及generic等基礎開發包配置)|-- cts (Android相容性測試套件標準)|-- dalvik (dalvik JAVA虛

Android Eclipse匯入原始碼時對自己新增的class檔案提示"XXX cannot be resolved to a type"的解決辦法

Eclipse匯入原始碼時對自己新增的class檔案提示"XXX cannot be resolved to a type"錯誤提示,且在Eclipse中點選該class物件時無法跳轉到該類,解決辦法

Windows上IDEA搭建最新Spark2.4.3原始碼除錯的開發環境

相信很多同學都想通過閱讀一些框架的原始碼,來提高自己的程式碼能力,但往往在第一步,搭建環境的時候就碰了壁。 本篇就來介紹下如何在Windows下,將最新版的Spark2.4.3編譯,並匯入到IDEA編譯器中。最後通過在IDEA執行Spark自帶的一共Example程式碼結尾。 1.搭建Spark原始碼環境所需

arcgis runtime for android 100.3開發學習(一)(點面,圖層的建立)

本節我們來學習一下arcgis runtime for android方面的相關內容,一一學習相關方面的api知識。這個案例是摘取github官網上面的。主要建立圖形案例的點、線、面,當然還有圖層的建立。來看一下實現的程式碼。 package com.example.arc

Angular 4.3 HttpClient (Angular訪問 REST Web 服務) 一Http 請求示例(Get)

連結 開發工具:Visual Studio Code 在Angular 4.3中引入了新的HttpClientModule。 這個新模組可以在@ angular / common / http包中找到,並且可以完全重新實現前一個HttpModule。新的Ht

k8s1.4.3安裝實踐記錄(1)-etcddockerflannel安裝配置

由於剛開始學習k8s,本次軟體的安裝,我們都採用最簡單的方式,能用yum 安裝的儘量採用yum安裝 1、ETCD安裝 ETCD官方文件:https://github.com/coreos/etcd/blob/master/Documentation/docs.md

目前下載VS2017可能遇到這個坑

可能現在大夥都已經開始使用VS2019進行開發了。VS2019的下載使用也都很簡單。由於工作需要,今天要在筆記本上安裝VS2017,結果發現,VS2017的下載變得不是那麼容易了,官方的下載方式也隱藏的很深,來來回回折騰了好一會才下載下來,因此記錄一下,防止大家也採坑。 作者:依樂祝 原文地址:https:

可能不知道的 PICkit3 離線燒寫 program to go 模式

燒寫PIC微控制器,其實PIC Kit3具備離線燒寫功能!請認準MC石頭的唯一CSDN部落格  請認準MC石頭的唯一CSDN部落格 這個功能對生產部門可能意義不大,但是對研發來說還是會經常用到的。請認準MC石頭的唯一CSDN部落格 便於小批量燒寫,比如燒寫測試用的10-2

leizhehan的部落格:(可能認得我的另一個名字:hsfzLZH1)hello, OI!

程式設計中最沒用的東西是原始碼,最有用的東西是演算法和資料結構。程式設計就是演算法和資料結構,演算法和資料結構是程式設計的靈魂。程式設計是一種美德,是促使一個人不斷向上發展的一種原動力。程式設計師之所以犯錯誤,不是因為他們不懂,而是因為他們自以為什麼都懂。

從ASP.NET Core2.2到3.0可能遇到這些問題

chang msdn 行操作 cnblogs services 顯示 newton 遇到的問題 家裏 趁著假期的時間所以想重新學習下微軟的官方文檔來鞏固下基礎知識。我們都知道微軟目前已經發布了.NET Core3.0的第三個預覽版,同時我家裏的電腦也安裝了vs2019。So