qqjianyue代碼工

          砌java代碼
          posts - 62, comments - 9, trackbacks - 0, articles - 10
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          2013年4月20日

          1. Change to aliyun repository

          2. Chinese input method
          sudo apt-get install ibus-pinyin
          #remmeber to logout and re-logon to change system 'Region&Language' setting

          3. Shadowsocks and genpac
          sudo apt install -y shadowsocks-libev
          #sudo vi /etc/shadowsocks-libev/shadowsock.json
          {
              
          "server":"x.x.x.x",
              
          "server_port":xx,
              
          "local_port":1080,
              
          "password":"xxxxx",
              
          "timeout":60,
              
          "method":"aes-256-cfb"
          }

          nohup ss-local -c /etc/shadowsocks-libev/shadowsock.json >/dev/null 2>&1 &

          sudo apt install phython-pip
          sudo -H
          pip install genpac


          如果pip error "TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'"
          sudo python -m pip install --upgrade --force pip

          mkdir pac
          cd pac
          touch user-rules.txt
          genpac --pac-proxy "SOCKS5 127.0.0.1:1080" --gfwlist-proxy="SOCKS5 127.0.0.1:1080" --output="autoproxy.pac" --gfwlist-url="https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt" --user-rule-from="user-rules.txt"

          配置系統自動代理為:
          /home/xxx/pac/autoproxy.pac

          4. JDK8
          https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
          download and setup environment variable manually


          5.gcloud
          http://ubuntuhandbook.org/index.php/2014/10/google-cloud-sdk-made-into-canonical-partners-repository/

          posted @ 2018-11-03 08:39 Qzi 閱讀(204) | 評論 (0)編輯 收藏

          官方說明:http://source.android.com/source/initializing.html
          環境:
          Ubuntu 12.04 64bit
          JDK6(installation: http://www.gaggl.com/2012/04/installing-java6-jdk-on-ubuntu-12-04/)

          $ make -v
          GNU Make 3.81
          Copyright (C) 2006  Free Software Foundation, Inc.
          This is free software; see the source for copying conditions.
          There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
          PARTICULAR PURPOSE.
          This program built for x86_64-pc-linux-gnu
          $ python -V
          Python 2.7.3
          android 當前 mainfest version: 4.2


          按照官方說明從下載到運行emulator,沒有nexus,所以沒做實際機器燒錄。步驟請根據官方說明做,以下只列出過程遇到的問題:
          1.repo sync
          經常出現斷線,網上有很多參考辦法,我是每次忽略這些錯誤,直到運行完畢退出,我再重新運行:
          repo sync -f
          知道所有代碼下載完畢(4.2的有16G)
          2.每次跑emulator都要cd到代碼目錄先進行環境初始化
          source build/envsetup.sh
          lunch full-eng
          3.emulator出錯
          $ emulator
          emulator: WARNING: system partition size adjusted to match image file (229 MB > 200 MB)
          Segmentation fault (core dumped)
          改成用emulator-arm -partition-size 1024
          full long command reference:
          http://stackoverflow.com/questions/9022750/running-emulator-after-building-android-from-source

          posted @ 2013-04-20 10:57 Qzi 閱讀(306) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 古交市| 和田县| 莎车县| 余江县| 广平县| 新密市| 平泉县| 咸丰县| 许昌县| 石棉县| 汨罗市| 义马市| 会昌县| 明光市| 通河县| 昌吉市| 龙里县| 蕉岭县| 永和县| 吐鲁番市| 梁河县| 名山县| 扎鲁特旗| 安国市| 永德县| 讷河市| 剑川县| 蛟河市| 吉木乃县| 东至县| 衡山县| 千阳县| 肃宁县| 东台市| 遂宁市| 罗江县| 股票| 买车| 柯坪县| 淳化县| 岳池县|