qqjianyue代碼工

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

          Android compile 注意點

          Posted on 2013-04-20 10:57 Qzi 閱讀(306) 評論(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

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 仙游县| 大丰市| 鄂托克旗| 介休市| 阿瓦提县| 来安县| 隆化县| 永春县| 木里| 台中市| 惠来县| 巴中市| 昌平区| 繁昌县| 稻城县| 邵阳市| 文山县| 高陵县| 宝坻区| 赤水市| 横峰县| 铜鼓县| 密云县| 盐源县| 扬中市| 措美县| 黄龙县| 闻喜县| 贞丰县| 体育| 容城县| 常德市| 定西市| 和龙市| 嘉禾县| 时尚| 长宁区| 离岛区| 凤山市| 太仆寺旗| 常山县|