Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
210 views
in Technique[技术] by (71.8m points)

How to attach Android Source to Eclipse

I've previously had success attaching the Android Source to Eclipse by following Finn Johnsen's instructions here.

However this approach seems to have stopped working:

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.

There was a more recent blog here which had some pre-organized source for Eclair, but nothing since.

There are also some StackOverflow posts from 2008 (older than both the above), e.g. https://stackoverflow.com/questions/3182904/attaching-java-source-to-android-projects-in-eclipse.

What is the current guidance for accomplishing this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

There is a updated guide. So, you don't need to install an eclipse plugin for this.

Here is the link

Snip from above Link:

follow below steps if you already have downloaded Android sources

  1. Head into eclipse, and press F3 over some android source you're missing, like Activity. And get this pesky window, which we all hate:

  2. Click Attach Source, choose External Folder, and choose the core/java in the base folder.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...