调试Android应用程序时,没有源代码连接错误 [英] No source attachment error when debugging Android applications

查看:184
本文介绍了调试Android应用程序时,没有源代码连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始在Eclipse做Android开发Mac OS X上。在调试一个活动,我不断收到以下错误:

I have just started doing Android development on Mac OS X in Eclipse. When debugging an Activity, I keep getting the following errors:

JAR文件/platforms/android-10/android.jar没有源代码连接。

The JAR file /platforms/android-10/android.jar has no source attachment.

这开始变得非常讨厌,它的意思是在某处抛出异常? (该消息本身并不提供任何有意义的信息,为什么发生这种情况),我不想踏进源;并Eclipse中默认情况​​下做到这一点?如何禁用呢?

This is starting to get very annoying, does it mean something is throwing an exception somewhere? (the message itself does not give any meaningful information as to why this is happening) I do not want to step into the source; does Eclipse do this by default? How do I disable it?

推荐答案

它看起来像你必须在应用程序中的一些错误。而Android子系统抛出异常。通常情况下,如果这种异常的android的起源,你会看到这种行为。

It looks like you have some error in your application. And Android subsystem throws exception. Normally, if such exception originates from android, you'll see this behavior.

你应该做的:

  1. 打开 LogCat中视图来查看日志。
  2. 在没有调试器启动您的应用程序(按Ctrl + F11在Ubuntu /视窗)
  3. 检查在 LogCat中这些日志非常谨慎。他们将包含其中,发生异常(源自您的code)的地方。然后,您将能够轻松地解决这个问题,自己(或要求更多援助,如果需要的话)。
  1. Turn on LogCat view to see logs.
  2. Launch your app without debugger (Ctrl+F11 on ubuntu/windows)
  3. Inspect those logs in LogCat very carefully. They will contain the place where exception happened (originating from your code). You will then easily be able to fix the issue yourself (or ask for more assistance if needed).

在一个正常的开发工作流程,你应该打不中的情况下像你这样太频繁。它只是学习曲线:)所以保持冷静,继续学习。

In a normal development workflow you shouldn't hit cases like yours too often. Its just the learning curve :) So stay calm and keep learning.

这篇关于调试Android应用程序时,没有源代码连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆