How to attach source to android.jar

前端 未结 7 713
故里飘歌
故里飘歌 2020-12-04 07:17

I am new to Android. I am working in the Windows OS with the Eclipse IDE. My simple application has a spinner that populates a list from database column. When I click on th

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 07:35

    For me the only solution which worked was the answer of fsbmain. Kudos to him. I can't comment on his solution because of my low reputation counter. But I want to share my knowledge ;)

    I'm working on windows and don't wanted to copy the whole source tree to another location. And copy again on updates etc. So I used the possibility to insert a symbolic link which works since Windows Vista like a charm (or like Linux). For Linux you have to look at the Joe's comment under fsbmain's answer.

    Assuming you have the platform in D:\sdk\platforms\android-19. Now you have to make a subdirectory sources and after that create a relative link to the real sources folder.

    D:\sdk\platforms\android-19>mkdir sources
    D:\sdk\platforms\android-19>cd sources
    D:\sdk\platforms\android-19\sources>mklink /D android-19 ..\..\..\sources\android-19
    

    Now restart Eclipse ... Done!

提交回复
热议问题