I know this question was asked before here and an good post here. But none of the given solutions seem to work in android studio 2.0. can someone please point out how to browse the android SDK sources in android studio 2.0?
Asked
Active
Viewed 1,178 times
2
-
Which preview version are you in? It seems to be working fine with my Android Studio 2.1 preview 3 version. Just for double-checking, which compileSdkVersion are you using in your module's build.gradle file? – Hungry Coder Mar 20 '16 at 05:07
-
I'm using using preview version 6 and compile SDK version 23 – nvinayshetty Mar 20 '16 at 05:09
1 Answers
0
If it doesn't pickup automatically ;
Control+ Click Framework Class (Should show you decompiled code)
Choose Sources..
Point to ~\AppData\Local\Android\sdk\sources\android-23

gawicks
- 1,894
- 15
- 22
-
When I select a framework class the decompiled class shows the code of mock android. In which in which all methods are overridden to throw RuntimeException("stub!"); – nvinayshetty Mar 20 '16 at 05:39
-
You should see the "Decompiled.class file" banner. Click "Choose Sources.." on the top right hand corner of the banner. – gawicks Mar 20 '16 at 05:56
-
1it shows the source of MockableAndroid.jar not the real android source – nvinayshetty Mar 29 '16 at 13:27