Recently upgraded as, and then suddenly connected to the source, is not convenient, find a source of activity only outline no explanation, but also prompted this error:
Decompiled. class file, bytecode Version:souces for Android APIs platform not found
In D:\Android\sdk\sources\android-23 obviously downloaded the source code, looking for a half-day, the original is as the default configuration has a problem. The final solution is on this post in StackOverflow:
Sources for Android API at Platfrom not found (Android Studio 2.0)
0down VoteAccepted |
For people facing the same problem, the solution are In this post for Linux and in the Same Topic here for Windows (thanks to Aamir Abro ). Basically you has to edit , jdk.table.xml file for API level is 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. Windows file location: c:\users{user_name}. Androidstudio2.0\config\options\jdk.table.xml Linix file location: ~/library/ Preferences/androidstudiobeta/options/jdk.table.xml |
The specific operation is: Find jdk.table.xml This file, add this sentence under the <sourcePath> node <root type= "Simple" url= "file://D:/android/sdk/ Sources/android-23 "/>
The modified section of the configuration file is as follows:
<JDKversion= "2"> <namevalue= "Android API Platform" /> <typevalue= "Android SDK" /> <HomePathvalue= "D:\ANDROID\SDK" /> <Roots> <Annotationspath> <Roottype= "Composite"> <Roottype= "simple"URL= "jar://$APPLICATION _home_dir$/plugins/android/lib/androidannotations.jar!/" /> </Root> </Annotationspath> <ClassPath> <Roottype= "Composite"> <Roottype= "simple"URL= "jar://d:/android/sdk/platforms/android-23/android.jar!/" /> <Roottype= "simple"URL= "File://D:/Android/sdk/platforms/android-23/data/res" /> </Root> </ClassPath> <Javadocpath> <Roottype= "Composite"> <Roottype= "simple"URL= "File://D:/Android/sdk/docs/reference" /> </Root> </Javadocpath> <SourcePath> <Roottype= "Composite"> <Roottype= "simple"URL= "File://D:/Android/sdk/sources/android-23" /> </Root> </SourcePath> </Roots> <additionalJDK= "1.7"SDK= "Android-23" /> </JDK>
Android Studio could not correlate Api23 source-prompt souces for Android API at platform not found