问题描述
我已在SDK Manager帮助下下载了所有文档.但是下载后如何在Android Studio中打开此文档和代码示例?
I have downloaded all documentation with SDK manager help. But how can I open this documentation and the samples of code in Android Studio after downloading?
推荐答案
首先,您需要确保将文档添加到Android Studio中.
First you need to make sure the documentation is added to Android Studio.
转到File
-> Project Structure
.在Platform Settings
标题下,添加或选择Android Platform
.转到Documentation Paths
选项卡,并确保在其中添加了SDK的documenation文件夹的路径-应该为[SDK]\docs\reference
,其中[SDK]
是SDK安装的完整路径.如果没有,请手动添加.
Go to File
-> Project Structure
. Under the Platform Settings
heading, add or select an Android Platform
. Go to the Documentation Paths
tab and make sure the path to your SDK's documenation folder is added there - it should be [SDK]\docs\reference
, where [SDK]
is the full path to your SDK installation. If it is not there add it manually.
完成此操作后,当光标位于要显示帮助的项目上时,请使用Ctrl + F1.
Once this is done, use Ctrl+F1 while your cursor is on the item you want to display help for.
这些示例尚未移植到Android Studio,但是我敢肯定Google会在某个时候解决它.现在,请按照androidika注释中的说明进行操作(您将需要安装Eclipse的副本).
The samples have not been ported to Android Studio yet, but I'm sure google will get around to it at some point. For now follow the instructions in the comments by androidika (you will need a copy of Eclipse installed).
这篇关于如何在android studio中打开android文档和代码示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!