repo sync时出现“未预期的符号 `newline' 附近有语法错误”解决方法
(2013-11-04 13:23:11)
标签:
it |
分类: logcat |
执行repo sync时提醒:
/home/ghoul/bin/repo: 行 1: 未预期的符号 `newline' 附近有语法错误
/home/ghoul/bin/repo: 行 1: `'
疑似google更改了git地址引起不能同步源码,通过以下命令解决。
ghoul@jg:~$ curl
http://git-repo.googlecode.com/files/repo-1.12 >
~/bin/repo
100 17393 100 17393
0 0
42143
0 --:--:-- --:--:-- --:--:-- 45891
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
ghoul@jg:~$ chmod a+x ~/bin/repo
ghoul@jg:~$ export PATH=$PATH:~/bin
ghoul@jg:~$ cd android
ghoul@jg:~/android$ cd system
ghoul@jg:~/android/system$ repo sync
... A new repo command ( 1.20) is available.
... You should upgrade soon:
Fetching project repo
Fetching project CyanogenMod/android_prebuilt
Fetching project CyanogenMod/android_frameworks_base
Fetching project CyanogenMod/android_vendor_cm
来自 git://github.com/CyanogenMod/android_prebuilt
后一篇:android 分辨率自适应

加载中…