Using ADT and SDK manager, attach android source code to eclipse

后端 未结 5 1118
长发绾君心
长发绾君心 2021-02-19 18:40

After installing ADT, I used SDK Manager to download the source codes for the latest android API. Now when I run the Eclipse version that was provided with the ADT, I still can\

5条回答
  •  旧时难觅i
    2021-02-19 19:09

    After downloading the Sourcecode by useing the "Android SDK Manager", you have to change the settings in your eclipse-porject.

    At first, just have a look where the Sourcecode has been downloaded. In my case (useing Windows 8) its here: "C:\adt-bundle-windows-x86_64-20130219\sdk\sources\android-17"

    • Now go into Eclipse.
    • Open the "Properties" of the project (right click on the project-folder and click on "Properties").
    • On the left side click on "Java Build Path" and then click on the tab-page "Libraries".
    • Next you click on the right side on the button "Add External Class Folder...".
    • Select the folder where you find the sourcecode. In my case its the folder "android-17" of the path "C:\adt-bundle-windows-x86_64-20130219\sdk\sources\android-17".
    • Commit / close all windows with ok. (Maybe you should restart eclipse.)

    And now you can see/read the Android-Sourcecode. (But only in the project which you have choosen before.)

提交回复
热议问题