I am currently using the Liunx system (of course, the other platform basically the same), the project does not automatically associated with the source code
Such as:
It's so depressing.
According to the Netizen hint: http://blog.csdn.net/jackie03/article/details/37922409
The following two methods are available:
1, turn off all your projects, enter the Androidstudio welcome interface, then enter Configure>project defaults>project Structure>sdks, if you can see the SDKs option, Basically select the SDK API you want to modify, find the corresponding SourcePath panel can modify or add your source directory.
2, if you and I as tragic, in the 1 method of project structure see SDKs This option, then we will go into the Androidstudio configuration directory
Under Windows: System disk: \users\username\. Androidstudiobeta
Under Mac: ~/library/preferences/androidstudiobeta
Under Linux:/. androidstudio/config/options/
Linux under command
Locate the Jdk.table.xml file and add the corresponding source address to all the <sourcePath> nodes in the text editor
Here is the code snippet under Linux:
<sourcePath>
<root type= "Composite" >
<root type= "Simple" url= "file://android/android-sdk-as/sources/android-19"/>
<root type= "Simple" url= "file:///android/android-sdk-as/sources/android-19"/>
</root>
</sourcePath>
Here is the code snippet for Windows:
<sourcePath>
<root type= "Composite" >
<root type= "Simple" url= "file://D:/androidStudio/android-sdk/android-sdk-eclipse/android-sdk/sources/android-15"/>
</root>
</sourcePath>
After the change, save the exit, restart Android Studio, is not able to see the source of it!!!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Studio Affiliate Source code