亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2693 | 回復(fù): 0
打印 上一主題 下一主題

Developing android application with sdk and apache ant [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2010-07-27 22:28 |只看該作者 |倒序?yàn)g覽
developing android application with sdk and apache ant

ps: just a note to record the settings.

I hate eclipse! I seldomly used eclipse to develop android app. Here is a alternative approach to work with android sdk instead of eclipse!

Simply, there are two steps to finish configuration of development environment.

Firstly,download and install the android 2.2 sdk.

from
        [1]http://androidappdocs.appspot.com/sdk/index.html
        [2]http://www.android.com/

for example, http://dl.google.com/android/android-sdk_r06-linux_86.tgz

exact android-sdk_r06-linux_86.tgz to some place (i.e., /home/android/android/android-sdk_r06-linux_86), and then setup the system environment:

    $ export PATH="$PATH:home/android/android/android-sdk_r06-linux_86/tools"
   
    strongly recommend that it's added into .profile/.bashrc (to myself, I prefer to do this in /etc/environment, Ubuntu 9.04)
   
    And then run the follow command at current console to download the sdk packages:
   
    $ android
   
    It will popup a new window manager ("Android SDK and AVD Manager"), click "Available Pacages" on the left column, and then the right column would show you "Sites, Packages and Archives"; let the checkbox selected (https://dl-ssl.google.com/android/repository/repository.xml), and then choose the package level which you want to install. Follow the tips and update sdk platforms.
   
    This will take some time to updating, depengding on the packages you choose.
   
    After updating platforms, run the following comand:
   
    $ android list target
   
    If upgrading sucessfully, you would see the targets you choosed.
   
   
Secondly, download and install apache ant

Ant's homepae: http://ant.apache.org
The lastest version is 1.8.1

exact the tarball into some place, /home/android/ant-1.8.1, for example. And then setup ant's path:
    $ export PATH="$PATH:/home/android/ant-1.8.1/bin"

To make ANT work correctly, make sure to setup the JAVA_HOME first:
    $ export JAVA_HOME=path/to/java
   
run
    $ ant
at the currnt sonsole, you will see some error as follows:
   
    lenovo@h180 /home/android $ ant
    Buildfile: build.xml does not exist!
    Build failed


To verify both above work correctly, now we create a new simple android project and compile it.

    $ android create project -n HelloAnt -t android-8 -p HelloAnt -k exam.helloant -a HelloAnt
    $ cd HelleAnt
    $ ant debug
   
    If the emulator or device is online, you could run directly:
   
    $ ant install
   
    to compile the project and install the .apk file into the emulator or device.
   
   
    Until now everything is going well. Have fun!

評(píng)分

參與人數(shù) 1可用積分 +15 收起 理由
prolj + 15

查看全部評(píng)分

您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP