Android Studio quick documentation always “fetching documentation”

后端 未结 12 1512
Happy的楠姐
Happy的楠姐 2020-11-29 18:14

I just move to Android studio from eclipse,I found that it always shows \"fetching documentation\" when I use quick documentation(Ctrl+Q),How to solve this?(I download docum

12条回答
  •  迷失自我
    2020-11-29 18:34

    As other answers said, it's because the Android Studio is trying to fetch the javadoc online (from http://developer.android.com/reference/), which will be very slow if the network not good, especially in China because google is blocked. So we should change this setting and let Android Studio fetch javadoc locally:

    1. Download Android SDK Documentation using the Android SDK Manager.
    2. Open the file ~/Library/Preferences/AndroidStudio2.2/options/jdk.table.xml, see notes below to make sure the correct file is edited.
    3. In the file jdk.table.xml, replace all http://developer.android.com/reference/ to the path to your sdk reference folder. For example file://$USER_HOME$/tools/adt-bundle-mac/sdk/docs/reference on my Mac.

    On OS X, if you have used several versions of Android Studio, there may be several configuration folders for each version (under ~/Library/Preferences/), you should change the jdk.table.xml in the right folder, in my case I should edit jdk.table.xml under the folder AndroidStudio2.2.

提交回复
热议问题