The source attachment does not contain the source for the file Activity.class
最近利用Eclipse写android程序,在debug时,总是提示The source attachment does not contain the source for the file Activity.class.
在网上查了很多,最靠谱的说法是代码没有与文件关联,解决的办法在这2个blog上写了http://blog.csdn.net/xinzheng_wang/article/details/7428824
http://blog.sina.com.cn/s/blog_724d24bf01010ag9.html,但是这里面在platforms里的android-17下建一个sources文件夹然后把android源码解压到sources文件夹下,
再点击add attched source,选择external folder选择刚刚建立的那个sources文件夹---确定就可以。
但是这个方法没能解决我的问题,我在android-17下建立sources文件夹没有效果,但是在SDK目录下有一个sources文件夹,所以点击刚刚的add attched source后选择SDK目录下的sources文件夹,再确定,就解决了我的问题。
转载于:https://www.cnblogs.com/shuqiangji/archive/2013/06/07/3123832.html
The source attachment does not contain the source for the file Activity.class相关推荐
- The source attachment does not contain the source for the file ActionSupport.class 错误
The source attachment does not contain the source for the file ActionSupport.class 错误 报错 Syntax er ...
- eclipse查看源码:has no source attachment,you can attach the source by clicking Attach Source below:
如图所示:(提示基本上差不多) \ 因为我们引用的都是jar,里面都是class编译文件,现在需要的是.java文件,所以需要下载 打开maven仓库----------------http://mv ...
- the source attachment does not contain the source for the file xxx.class无法关联到某个类
问题描述: 按下列操作添加相应路径(这里是错误操作) 该问题仍旧无法解决: 注意:这里spring-webmvc-4.1.7.RELEASE.JAR中确实包含AnntationMethodHandle ...
- myeclipse10 tomcat :the source attachment does not contain the source for the file URLClassPath.clas
在使用myeclipse10 的Tomcat的时候,不知道怎么回事遇到这个问题,我经过百度,看他人博客,最终解决了这个问题 以下是该问题的解决方法: 是我们把Tomcat的启动模式设置为DEBUG模式 ...
- the jar file has no source attachment解决方法
今天开发一个简单的保存数据到数据库的功能,但是频繁报错,tomcat也一直崩溃,真的是...什么都不想说了.基础扎实才是王道!今天分享一个我遇到的问题并附上解决办法:the jar file has ...
- 【转】eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
因为rt的source在jdk目录的src.zip文件里,将文件设置为jdk下的src.zip就行了.具体如下 Window>Preferences>Java>Installed J ...
- 線上 Android/Linux Kernel Source Code瀏覽 - Android/Linux Source Code Cross Reference
線上 Android/Linux Kernel Source Code瀏覽 - Android/Linux Source Code Cross Reference http://hala01.com/ ...
- The jar file has no source attachment
前言 Eclipse Version: 2019-12 (4.14.0) win10 jdk 1.8 描述 eclipse按照后,发现rt.jar的类不能关联源码. 分析 不能关联源码的可能有: 没有 ...
- Source Insight 基本使用(1)-使用Source Insight查看Android Framework 源码
一.下载framework源码: google已经把framework源码托管在了gitHub上: https://github.com/android/platform_frameworks_ba ...
最新文章
- hive函数 get_json_object的使用
- 银行java多线程例子_Java 多线程 之 银行ATM实例
- jquery mobile 移动web(5)
- Struts2一对多配置
- 十分钟一起学会ResNet残差网络
- Linux系统里存在两个剪切板
- 第115页的gtk+编程例子——最简单的进度条2附带使用Anjuta写gtk程序的步骤
- Java亿级流量架构之网关设计思路
- Java封装e4a_E4A类库封装从入门到放弃
- 世界各地 史上最全最详细无线通信频率分配表(内容含概wifi、2.4G、5G,绝对值得收藏)
- python中ifelse语句怎么写_pythonifelse语句怎么写
- 三:OpenCV图片颜色通道数据转换
- ENSP网络综合实验
- 微信公众号自动回复多图文(php)
- WPF无弹窗打印_se7en3_新浪博客
- OAI-PMH:元数据获取标准
- 跆拳道培训机构如何用抖音快手做推广
- 有个程序员女朋友是什么体验?
- faster rcnn 训练自己的数据集---踩坑记录!!!
- 如何获取iPhone设备的设备信息