AndroidStudio添加Android源码
找了半天没找到,还是用google好啊!修改如下,打开如下的build.gradle,修改compileSdkVersion 为你下载的源码版本号。
Open your sdk manager from toolbar menus and download the "Sources for Android SDK" for the API level defined in your build.gradle file like
compileSdkVersion 19 // compile with API level 19
Nothing else needs to be done.
Note : Sources for SDK is available only for API levels 14 and above.
参考了stackoverflow。
作者:半山
出处:http://www.cnblogs.com/xdao/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。