您的位置:首页 > 移动开发 > Android开发

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

2016-02-03 15:59 399 查看
起因:当debug的时候Source not found:



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

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



解决方案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.出现问题:/article/1374630.html

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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: