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

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

问题描述

我知道如何将android源代码导入eclipse,但是有什么方法可以将android源代码导入android studio.因为我想将我的想法从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!

推荐答案

我从同事那里找到了答案,他告诉我,请使用源代码/development/ide/eclipse/.classpath中的文件.该文件用于eclipse导入android源代码.但是有一种方法可以将该文件传输到intellij项目导入文件中.抱歉,我也不知道该如何转让.但是我的同事给我发了一个* .iml file.yeah,这是可以帮助您创建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天全站免登陆