Java Jar 文件 ../android-8/android.jar 没有源附件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9652690/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The Jar file ../android-8/android.jar has no source attachment
提问by dan
I came across this no source attachment problem when I was debugging the project, but when I run the android program without debugging enabled, the program would run without any trouble. Even after I attached the jar file manually, it still reported that properties.class could not be found! What should I do with this problem? What is the reason for this? thanks!!!
我在调试项目时遇到了这个无源附件问题,但是当我在没有启用调试的情况下运行android程序时,该程序可以毫无问题地运行。即使我手动附加了jar文件,它仍然报告找不到properties.class!遇到这个问题我该怎么办?这是什么原因?谢谢!!!
Daniel
丹尼尔
回答by Yury
In the debug mode your application try to go through all the sources. Some of these sources are come from parts of Android framework system (Android SDK) which has been built. Thus, they come to your system as a built files (there are no source files) and thus, when you try to step through a function from Android framework the system cannot find the sources of this function (but still you have binaries of this function).
在调试模式下,您的应用程序尝试遍历所有源。其中一些来源来自已构建的 Android 框架系统 (Android SDK) 的一部分。因此,它们作为构建文件出现在您的系统中(没有源文件),因此,当您尝试从 Android 框架单步执行某个函数时,系统无法找到该函数的源(但您仍然拥有该函数的二进制文件) )。
To avoid this problem during the debug you can download and attach the sources of Android system or you can use Android Sources plugin (http://code.google.com/p/adt-addons/)
为了避免在调试过程中出现这个问题,您可以下载并附上Android系统的源代码,或者您可以使用Android Sources插件(http://code.google.com/p/adt-addons/)