ubuntu 9.04 + eclipse 3.4.2 + android

本文详细介绍如何在 Ubuntu 9.04 环境下使用 Eclipse 3.4.2 进行 Android 应用开发。内容包括配置 Eclipse 支持 Android 代码、设置 Android SDK、安装 ADT 插件及创建并运行第一个 Android 应用等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Env: ubuntu 9.04 + eclipse 3.4.2
1. get eclipse 3.4.2
2. config eclispe to include the cupcake code tree
    https://sites.google.com/a/android.com/opensource/using-eclipse
    a) cd $CUPCAKE && make
    b) cp development/ide/eclipse/.classpath . && chmod u+w .classpath  # Make the copy writable
        modify .classpath to delete all nonexisting path and files
    c) modify $ECLIPSE_INSTALL_PATH/eclipse.ini [-Xms128m -Xmx512m]
    d) start eclipse: [File > New > Java Project] --> [Create project from existing source], select $CUPCAKE 
    
3. setup android sdk
    a) cd $CUPCAKE && make sdk;  then get zip file: android-sdk_eng.iibull_linux-x86.zip 
    b) cd $CUPCAKE/prebuild/toolchain/; unzip android-sdk_eng.iibull_linux-x86.zip
    c) vi ~/.bashrc; export PATH= $CUPCAKE/prebuild/toolchain/android-sdk_eng.iibull_linux-x86/tools:$PATH
4. install plugin adt [http://www.chinaup.org/docs/intro/installing.html#installingplugin]
    a) eclipse &; [Help --> Software Updates --> Available Software], add URL: http[s]://dl-ssl.google.com/android/eclipse/ --> [install ...] --> finish 
    b) restart eclipse, update your Eclipse preferences , and make a reference to your sdk folder:
           [Window > Preferences] --> select Android --> locate SDK tab and [Browse] -> Apply
           
5. make hello world apk for android [http://www.chinaup.org/docs/intro/hello-android.html]
    a) File > New > Project  --> android project
    b) fill package name and activity name
    c) finish
    d) modify main.xml and string.xml and your java code
    e) run it in emulator 


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/90973/showart_1985192.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值