Android的工作室:如何安装Android的SDK源? [英] Android Studio: how to attach Android SDK sources?

查看:151
本文介绍了Android的工作室:如何安装Android的SDK源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何可以将Android的SDK源到Android工作室?

How can I attach Android SDK sources to Android Studio?

当我打开的安卓类之一,未找到源的与附加来源选项不会出现。窗口

When I open one of the Android classes, the "Sources not found" window with "Attach Sources" option doesn't appear.

有什么其他办法可以做到这一点?

What is the other way to do this?

推荐答案

从工具栏菜单打开SDK管理器和下载资源为Android SDK中的为您build.gradle文件中定义如

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.

注意:源的SDK仅适用于API等级14以上

Note : Sources for SDK is available only for API levels 14 and above.

这篇关于Android的工作室:如何安装Android的SDK源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆