Android Studio could not correlate Api23 source-prompt souces for Android API at platform not found

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.