免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1522 | 回复: 0
打印 上一主题 下一主题

ubuntu 9.04 + eclipse 3.4.2 + android [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-03 18:56 |只看该作者 |倒序浏览
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://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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP