Solving the absence of Android source...

  1. Create a new Android project, then follow these steps.
    1. Right-click the project and choose Build Path -> Configure Build Path .
    2. Click the Libraries tab.
    3. Click Android 2.2 (or whatever version is shown) and then click the Remove button.
    4. Click Add Library... , select User Library and click Next .
    5. Click User Libraries... .
    6. Click New... , then type in "Android" or "Android 2.2" as you like.
    7. With your new library selected in the center pane, click Add JARs... and navigate to your Android SDK; find android.jar . For example, mine is on the path C:/Users/russ/dev/android-eclipse/android-sdk-windows/platforms/android-8/android.jar .
    8. Click the android.jar and then Open . This adds the Android SDK JAR to your library. It's the only JAR you need.
    9. Now expand your new library by clicking on the triangle to the left of its name. You should see android.jar . Expand android.jar similarly to reveal a list of 4 items.
    10. Double-click Source attachment: , choose External Folder... and then navigate to (or simply type in the path) to the subdirectory source you just downloaded and click OK . Click OK a second time, then a third to dismiss the User Libraries dialog.
    11. With the new Android SDK library set up (including source code), check its box in the User Library dialog and click Finish . The library should be added to your project (in place of the one that the Android SDK Eclipse plug-in added automatically when you created the project).
  2.  

ref: http://www.javahotchocolate.com/tutorials/android.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值