Source not found-Android 使用隐藏API(1)

起因:当debug的时候Source not found:

Source not found-Android 使用隐藏API(1)_第1张图片

浅层原因:查找原因,发现Android一些文件在android.jar包不存在Zygoteinit.java文件

深层原因:internal和hidden API在SDK中是按照一样的方式处理的(都从android.jar中移除了),但internal API更惨的是,还被Eclipse的ADT插件显式禁止了。

Source not found-Android 使用隐藏API(1)_第2张图片

解决方案1:编译android环境,得到class类库,加到android.jar里面去

参考文档:

1.下载源码:http://hubingforever.blog.163.com/blog/static/1710405792011102622333130/

2.源码官网:source.android.com/index.html

3.android 源码编译环境的搭建 http://jingyan.baidu.com/article/5bbb5a1b3a541313eba17915.html

4.android 编译http://jingyan.baidu.com/article/a501d80ce61ad0ec630f5e0b.html

5.出现问题:http://blog.csdn.net/jiangwei0910410003/article/details/37988637

6.得到包含API的Android类库:http://hubingforever.blog.163.com/blog/static/171040579201161984136883/

7.使用隐藏的API http://hubingforever.blog.163.com/blog/static/1710405792012101424413/

解决方法2 : 参考Android 使用隐藏API(2)





你可能感兴趣的:(android,api)