首页 > 技术文章 > Decompiled .class file,bytecode version:51.0(Java 7) Source for 'Android API 23 Platform' not found

butterfly-clover 2016-08-19 16:27 原文

今天在Android Studio中访问Java源码的时候,代码上方出现如下提示:

而且方法体中显示介样内容:

throw new RuntimeException("Stub!");

 

点击Download下载源码后,点击Refresh却没有响应,在网上搜解决办法,有片文章写的挺清晰的 链接:http://blog.csdn.net/u010917495/article/details/51234179,

但是可能比较只用Windows系统吧,我的是Ubuntu系统,但是在他的参考链接中,找到了解决办法,而且很容易操作:

步骤如下:在Android Studio中

File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK.

编辑sdk的路径,注意这里,即使你的sdk路径是对的,也重写编辑一遍,然后next,完成之后,关闭设置页面,这时问题就解决了。

推荐阅读