解决eclipse中查看android工程代码出现android.jar has no source attachment
来源:互联网 发布:拍卖系统源码 编辑:程序博客网 时间:2024/05/17 22:36
问题描述
Source not found
The JAR file D:\.....\sdk\platforms\android-17\android.jar has no source attachment.
提示就是找不到android.jar对应的source code
解决办法
由于我的工程创建时选择的Target SDK 和 Compile with选项 均为android4.2.2,对应的api是17,因此就是eclipse找不到android api 17中的android.jar的源代码。
1. 使用SDK Manager下载4.2.2版本的Sources for Android SDK
以本机为例下载后的目录为:
D:\adt-bundle-windows-x86_64-20130522\sdk\sources\android-17
2. 添加源代码
点击出错窗口中的Attach Source...按钮,然后
找到
D:/adt-bundle-windows-x86_64-20130522/sdk/sources/android-17
点击OK后源代码就显示出来了
================
2013.10.9更新
可能是使用了android4.3(API 18)新的api,今天使用Eclipse/ADT Bundle出现了
the source attachment does not contain the source for the file *.class 的问题,而指定的源代码目录是没有问题的,问题竟然是编码问题。
上图中的Encoding选项修改为UTF-8,问题解决。
原文地址:http://www.xuebuyuan.com/1292879.html
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- 【图】解eclipse 查看原始类出现The jar file rt.jar has no source attachment
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- Eclipse 查看源码出现 The jar file rt.jar has no source attachment 解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- eclipse 查看原始类出现The jar file rt.jar has no source attachment解决方法
- Android 单步调试出现The jar file ....android.jar has no source attachment
- The JAR file D:/..../android.jar has no source attachment
- The JAR file D:/..../android.jar has no source attachment
- (转载)eclipse中tomcat 编写web 出现 servlet-api.jar has no source attachment 问题
- 图解myEclipse 查看原始类出现The jar file rt.jar has no source attachment
- eclipse查看不了源码(the jar file has no source attachment)解决方法
- how to use cmake
- CodeForces - 676A Nicholas and Permutation (模拟) 水
- c++ stl容器set成员函数介绍及set集合插入,遍历等用法举例
- AngularJS数据绑定
- ViewPage和Fragment上 实现BadgeView消息提醒(仿旧微信)
- 解决eclipse中查看android工程代码出现android.jar has no source attachment
- JAVA MD5加密
- 使用Node.js创建命令行工具
- Linux-KVM, QEMU, Virtualbox, VMWare
- 淘宝网采用什么技术架构来实现网站高负载的
- C++ Iterator迭代器介绍及Iterator迭代器用法代码举例
- 进程间通信之共享内存
- Play 1 Notes
- Struct 和 Union区别