deb http://tw.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse deb-src http://tw.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
在eclipse中新建Java工程,选择“Create project from existing source“,然后选中android源文件根目录。单击完成即可。(这个过程可能需要几分钟,导入eclipse后将进行编译)
http://hi.baidu.com/thousands_out/blog/item/0f09c58be7d9011ec8fc7a8b.html 遇到编译错误: 2. fprintf未定义 frameworks/base/tools/aidl/AST.cpp:10: error: 'fprintf' was not declared in this scope
解法:apt-get install gcc-4.3 g++-4.3,并重新ln gcc 和g++到 gcc-4.3 和g++-4.3 cd /usr/bin