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

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


          網站導航:
           
          主站蜘蛛池模板: 拉萨市| 精河县| 读书| 益阳市| 福安市| 囊谦县| 阜宁县| 柞水县| 柘荣县| 从化市| 苗栗县| 崇左市| 桐梓县| 兴业县| 梁河县| 仁布县| 科技| 庆城县| 南溪县| 六枝特区| 丹寨县| 白银市| 长寿区| 福建省| 定襄县| 泾源县| 鄢陵县| 潞城市| 黄冈市| 吉林市| 日土县| 漠河县| 咸丰县| 固原市| 新民市| 修文县| 呼和浩特市| 衡东县| 麻江县| 梁平县| 瑞丽市|