Android Studio Affiliate Source code

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.