Sources for Android API 23 Platform not found (Android Studio 2.0)
Apparently this issue has been fixed in Android Studio 2.1. Rerun the Android SDK Manager setup in Android Studio and this should solve your issue.
In Android Studio:
Windows: File -> Settings (ctrl+alt+s) -> Appearance & Behavior -> System Settings -> Android SDK.
Mac: Android Studio -> Preferences (cmd + ,) -> Appearance & Behavior -> System Settings -> Android SDK.
Click on Edit on the right of the Android SDK location. Click Next all the way through the wizard and this should fix the problem.
This was answered here for a different question.
For people facing the same problem, the solution is in this post for Linux and in the same topic here for Windows (thanks to Aamir Abro). Basically, you have to edit jdk.table.xml file for API level you are missing. I don't know why, but Android 2.0 and 2.1 RC don't have filled <root type="composite" />
in <sourcePath>
. I updated sources' path <root type="simple" url="file://D:/android/sdk/sources/android-23" />
and now it works.
For Windows user file location: C:\Users{USER_NAME}.AndroidStudio2.0\config\options\jdk.table.xml
For Linux user file location: ~/Library/Preferences/AndroidStudioBeta/options/jdk.table.xml
Edit:
For some people resetting SDK location helped source.
As qbeck mentioned in his comment, resetting the path to the SDK fixed the issue for some of us.
Solution:
Android Studio 2.1 reporting in: solved the issue by resetting SDK.
Preferences -> Appearance & Behavior -> System Settings -> Android SDK.
Click on Edit to the right of Android SDK location. Next, next, next to complete the wizard and voila!