How to attach Android source to Eclipse?

后端 未结 3 894
[愿得一人]
[愿得一人] 2020-12-05 00:27

While trying to debug a program I wrote in Eclipse for Android, I receive an error saying there\'s no source attachment for android.jar.

<
3条回答
  •  广开言路
    2020-12-05 01:12

    In Eclipse:

    Window > Android SDK Manager, install "Sources for Android SDK" under Android 4.0

    When prompted by "No sources attached...", click the button, then choose the Directory "your Android SDK directory/sources/android-API level/"

    Example: C:\...\android-sdk-windows\sources\android-16

提交回复
热议问题