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

来源:互联网 发布:从笔记本cpu编号知型号 编辑:程序博客网 时间:2024/05/08 17:44

解决方法1: File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK. 点击右边的Edit,然后下一步下一步下一步,,,收工。
参考连接:StackOverFlow - Sources for Android API 23 Platfrom not found (Android Studio 2.0)
这里写图片描述

解决方法2: 手动改配置文件,具体参考博客:CSDN - Android Studio无法关联Api23源码-提示Souces for android api 23 platform not found



android api24 绑定 api23的源代码

我上网找了很久,没找到api24的源代码,api24在AndroidStudio中是没绑定任何源代码的。根据上面的方法2,可以将api23的源代码绑定到api24中。

方法:
1. 修改文件 C:\Users\Administrator\.AndroidStudio2.1\config\options\jdk.table.xml
2. 找到 <name value="Android API 24 Platform" /> 同级下的 sourcePath ,改成

<sourcePath>  <root type="composite">    <root type="simple" url="file://C:/android-sdk/sources/android-23" />  </root></sourcePath>

重启AndroidStudio即可。

4 0
原创粉丝点击