构建Android源应用在Eclipse [英] Building Android Source Apps In Eclipse
问题描述
我下载的源按应用场合搜索此处
I downloaded the source to spareparts here
的http://android.git.kernel.org/?p=platform/development.git;a=tree;f=apps/SpareParts;hb=HEAD
它包括 Android.mk
,的AndroidManifest.xml
,的通知
, RES
和的src
文件夹。
It includes Android.mk
, AndroidManifest.xml
, Notice
, res
and src
folders.
我的问题是我怎么能编译在Eclipse这个源$ C $ C?我看到有一个make文件( Android.mk
),我猜我需要使用,但我想不出做什么让这件事导入月食无需500+错误。
My question is how can I compile this source code in Eclipse? I see there is a make file (Android.mk
) which I'm guessing I need to use but I can't figure out what to do to get this thing imported into Eclipse without having 500+ errors.
推荐答案
蛮力总是工作:)
- 创建Eclipse的一个新的Android项目命名为按应用场合搜索
- 使用资源管理器,以取代双方在src /和RES /内部工作区文件夹/与那些下载的形式混帐按应用场合搜索
- 单击与在Eclipse项目树的按应用场合搜索条目右键 - >刷新
- 欣赏
我看着文件,它似乎并不认为它使用的任何外部库。
如果试图通过自身建立它,你仍然会有由于这三个类不在的android.jar问题:
I looked into the files and it does not seem that it uses any external library. If you try to build it by itself, you will still have problems due to these three classes that are not in android.jar:
import android.app.ActivityManagerNative; //cannot be resolved
import android.os.ServiceManager; //cannot be resolved
import android.view.IWindowManager; //cannot be resolved
这篇关于构建Android源应用在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!