最近利用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相关推荐

  1. 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 ...

  2. eclipse查看源码:has no source attachment,you can attach the source by clicking Attach Source below:

    如图所示:(提示基本上差不多) \ 因为我们引用的都是jar,里面都是class编译文件,现在需要的是.java文件,所以需要下载 打开maven仓库----------------http://mv ...

  3. the source attachment does not contain the source for the file xxx.class无法关联到某个类

    问题描述: 按下列操作添加相应路径(这里是错误操作) 该问题仍旧无法解决: 注意:这里spring-webmvc-4.1.7.RELEASE.JAR中确实包含AnntationMethodHandle ...

  4. myeclipse10 tomcat :the source attachment does not contain the source for the file URLClassPath.clas

    在使用myeclipse10 的Tomcat的时候,不知道怎么回事遇到这个问题,我经过百度,看他人博客,最终解决了这个问题 以下是该问题的解决方法: 是我们把Tomcat的启动模式设置为DEBUG模式 ...

  5. the jar file has no source attachment解决方法

    今天开发一个简单的保存数据到数据库的功能,但是频繁报错,tomcat也一直崩溃,真的是...什么都不想说了.基础扎实才是王道!今天分享一个我遇到的问题并附上解决办法:the jar file has ...

  6. 【转】eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法

    因为rt的source在jdk目录的src.zip文件里,将文件设置为jdk下的src.zip就行了.具体如下 Window>Preferences>Java>Installed J ...

  7. 線上 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/ ...

  8. The jar file has no source attachment

    前言 Eclipse Version: 2019-12 (4.14.0) win10 jdk 1.8 描述 eclipse按照后,发现rt.jar的类不能关联源码. 分析 不能关联源码的可能有: 没有 ...

  9. Source Insight 基本使用(1)-使用Source Insight查看Android Framework 源码

    一.下载framework源码: google已经把framework源码托管在了gitHub上:  https://github.com/android/platform_frameworks_ba ...

最新文章

  1. hive函数 get_json_object的使用
  2. 银行java多线程例子_Java 多线程 之 银行ATM实例
  3. jquery mobile 移动web(5)
  4. Struts2一对多配置
  5. 十分钟一起学会ResNet残差网络
  6. Linux系统里存在两个剪切板
  7. 第115页的gtk+编程例子——最简单的进度条2附带使用Anjuta写gtk程序的步骤
  8. Java亿级流量架构之网关设计思路
  9. Java封装e4a_E4A类库封装从入门到放弃
  10. 世界各地 史上最全最详细无线通信频率分配表(内容含概wifi、2.4G、5G,绝对值得收藏)
  11. python中ifelse语句怎么写_pythonifelse语句怎么写
  12. 三:OpenCV图片颜色通道数据转换
  13. ENSP网络综合实验
  14. 微信公众号自动回复多图文(php)
  15. WPF无弹窗打印_se7en3_新浪博客
  16. OAI-PMH:元数据获取标准
  17. 跆拳道培训机构如何用抖音快手做推广
  18. 有个程序员女朋友是什么体验?
  19. faster rcnn 训练自己的数据集---踩坑记录!!!
  20. 如何获取iPhone设备的设备信息

热门文章

  1. 遇见那个对的人,便是爱情
  2. Activity学习(一):生命周期
  3. C语言 小游戏之贪吃蛇
  4. ASP.NET 购物车
  5. 怎么看台式计算机是几位的,怎么查看自己电脑型号
  6. volatile和synchronized的区别
  7. Go 两种形式的“类型转换”
  8. flash动画制作成品_Flash制作点燃蛋糕蜡烛的互动动画
  9. word里实现在方框中打勾和打叉
  10. 3springboot:springboot配置文件(外部配置加载顺序、自动配置原理,@Conditional)