How to find every version of android support libraries source code

后端 未结 6 874
死守一世寂寞
死守一世寂寞 2021-01-04 00:53

I meets some problems so I want to find the source code of the Android support libraries . For example , I want to read the ActionBarActivity.java source code in version 19.

6条回答
  •  孤独总比滥情好
    2021-01-04 01:07

    If you don't want to use any IDE, you can download command line tools only from https://developer.android.com/studio/index.html#downloads

    This example is for OSX:

    1. After download command line tools, you can run SDK Manager using this command: "sh android", maybe you need to add "sudo" before the command.
    2. SDK Manager will show up
    3. Select Sources for Android SDK or any packages you want to download
    4. Click button Install, and accept licences.
    5. After download succeed, you can navigate to the folder where you put the SDK, and then go to sources and navigate to ActionBarActivity or any sources you want

提交回复
热议问题