android - "Source Not Found", 在 Eclipse 中调试 Android 应用程序

标签 android debugging jar android-source platform

<分区>

当我尝试查看平台 JAR 或在 Eclipse 中调试我的 android 应用程序时,始终显示以下屏幕。

enter image description here

我已经阅读了一些在线帖子,了解到 Android SDK 没有随附源代码。但是我怎样才能下载正确版本的源代码并附加到 Eclipse 中呢?

I guess the following link provides the right solution for me, however, unfortunately it is outdated and I can download the source code for only Cupcake(1.5), Donut(1.6) & Eclair(2.1).

Attaching Android platform source in Eclipse

任何人都可以提供下载 Ice Cream Sandwich(4.0.3) 源代码的链接吗?任何帮助将不胜感激。

最佳答案

我的问题已通过以下几个步骤解决。

1) 我通过 Android SDK Manager 下载了源代码。 (源下载到位于“path_to_android_sdk/sources/android-xx”的源目录)。xxAPI级别编号( 15 for 4.0.3).Android 版本和 API 级别可以在以下链接中找到,以方便您使用。

Android Versions and API Levels

2) 我压缩了下载的文件。 (在本例中为 android-15)

3) 在“未找到源” 页面中,我单击“附加源”按钮并选择我在第 2 步中存档的 zip 文件。

关于android - "Source Not Found", 在 Eclipse 中调试 Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17871886/

相关文章:

android - 连接到 connect() 处的 url 时出现 IO 异常

eclipse - 在 Eclipse Oxygen 中禁用调试步骤按钮

java - 执行不带 "java -jar"的 jar 文件(就像命令一样)

jar -uf 正在删除jar内的文件

java - 在云中每隔几分钟运行一次 Java 应用程序的最佳方式?

android - 应用程序安装期间出现 INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 错误

java - 查询其他类/Activity 中的变量是否已填充

python - python 调试器中的所有变量都未定义

android-studio - 诊断Android应用程式当机的原因

java - 在 netbeans 中的 java 项目中添加可执行 jar 文件