在eclipse中查看native代码,能跳转

来源:互联网 发布:linux 修改文件名 编辑:程序博客网 时间:2024/05/17 06:07
// see development/ide/eclipse/README.importing-to-eclipse.txt
> copy $ANDROID_TOP/development/ide/eclipse/.classpath $ANDROID_TOP
> comment no need path
> setting eclipse.ini :
-Xms512m
-Xmx1024m
> start eclipse, create new java project, set the Location to $ANDROID_TOP
> switch to c/c++ perspective
> new->c/c++, convert to a c/c++ project
> properties->c/c++ General->Paths and symbols->Includes->import settings-> development/ide/eclipse/android-include-paths.xml

> properties->c/c++ General->Paths and symbols->Symbols->import settings-> development/ide/eclipse/android-include-paths.xml

> properties->c/c++ General->Paths and symbols->Source Location->Edit Filter
对需要导入到c/c++文件进行过滤(一般除了bionic,frameworks,system其他全部 过滤掉)

> Index -> Rebuild

配置之后,查看JAVA/c++代码不会有错误,也可以非常方便到在文件及代码间跳转
0 0
原创粉丝点击