我之前按照 Finn Johnsen 的说明成功地将 Android 源附加到 Eclipse here .
但是这种方法似乎已经停止工作:
samuel-josephs-computer-4:android-sources samueljoseph$ git checkout origin/froyo-release
Previous HEAD position was 1de4a2c... am 62619392: Merge "Fix leak when keylock is recreated."
HEAD is now at adba66b... This class no longer exists.
有一个更新的博客 here其中有一些预先组织的 Eclair 来源,但此后就没有了。
还有一些 2008 年的 StackOverflow 帖子(比上述两个都旧),例如 https://stackoverflow.com/questions/3182904/attaching-java-source-to-android-projects-in-eclipse .
目前的指导方针是什么?
最佳答案
有更新的指南。因此,您不需要为此安装 eclipse 插件。
从上面的链接截取:
follow below steps if you already have downloaded Android sources
Head into eclipse, and press F3 over some android source you're missing, like Activity. And get this pesky window, which we all hate:
Click Attach Source, choose External Folder, and choose the core/java in the base folder.
关于android - 如何将 Android 源代码附加到 Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5233640/