Sources for Android API 23 Platform not found (Android Studio 2.0)

前端 未结 6 688
不知归路
不知归路 2020-11-28 22:03

Android Studio doesn\'t redirect me to API sources correctly. When I hit any function it decompiles .class file bytecode instead of accessing the right file from sdk/sources

6条回答
  •  -上瘾入骨i
    2020-11-28 22:34

    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 in . I updated sources' path 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.

提交回复
热议问题