如何将android源代码(AOSP)导入Android studio? [英] How to import android source code(AOSP) into Android studio?

查看:63
本文介绍了如何将android源代码(AOSP)导入Android studio?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何将 android 源代码导入到 eclipse 中,但是有什么方法可以将 android 源代码导入到 android studio 中.因为我想将我的 ide 从 eclipse 更改为 android studio.提前致谢!

I know how to import android source code into eclipse , but is there any way to import android source code into android studio.because i want to change my ide from eclipse to android studio . thanks in advance!

推荐答案

我从同事那里找到了答案,他告诉我,使用 sourcecode/development/ide/eclipse/.classpath 中的文件.该文件用于 eclipse 导入 android 源代码.但是有一种方法可以将此文件传输到 intellij 项目导入文件中.不好意思,我也不知道怎么转.但是我的同事给我发了一个 *.iml 文件.是的,这是可以帮助您创建 intellij 模块的文件.获得文件后,将该*.iml文件复制到源代码的根目录,然后您可以打开intellij,创建一个空项目,从现有模块导入模块,然后在窗口中,选择*.iml文件,之后那,你唯一能做的就是等待.导入它需要很多时间.所以,你可以在intellij中开发android源代码.享受吧!

I found the answer from my colleague, he told me that , use the file in sourcecode/development/ide/eclipse/.classpath . this file is for eclipse to import android source code . but there is a way to transfer this file into a intellij project import file . sorry , I also don't know how to transfer. but my colleague email me a *.iml file.yeah ,this is the file that can help you crate the intellij module . After you get the file ,copy that *.iml file to the root of your sourcecode,then you can open the intellij,create a empty project ,import module from existing module ,then in the window ,chose the *.iml file ,after that ,the only thing you can do is wait . it takes much time to import it. so ,you can develop the android source code in intellij . enjoy it!

这篇关于如何将android源代码(AOSP)导入Android studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆