Sources for 'Android API 24 Platform' not found.[MAC]
来源:互联网 发布:企业网络危机公关处理 编辑:程序博客网 时间:2024/05/29 15:08
解决办法:
1.找到以下路径,并打开文件
~/Library/Preferences/AndroidStudioXXX/options/jdk.table.xml
2.修改
<sourcePath> <root type="composite" /></sourcePath>
修改后:
<sourcePath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/sources/android-24" /> </root> </sourcePath>
注:url的地址,需要根据自己的路径来确定。
3.重启as
修改后部分代码:
<jdk version="2"> <name value="Android API 19 Platform" /> <type value="Android SDK" /> <homePath value="$USER_HOME$/Library/Android/sdk" /> <roots> <annotationsPath> <root type="composite"> <root type="simple" url="jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/" /> </root> </annotationsPath> <classPath> <root type="composite"> <root type="simple" url="jar://$USER_HOME$/Library/Android/sdk/platforms/android-19/android.jar!/" /> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/platforms/android-19/data/res" /> </root> </classPath> <javadocPath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/docs/reference" /> </root> </javadocPath> <sourcePath> <root type="composite" /> </sourcePath> </roots> <additional jdk="1.8" sdk="android-19" /> </jdk> <jdk version="2"> <name value="Android API 24 Platform" /> <type value="Android SDK" /> <version value="java version "1.8.0_91"" /> <homePath value="$USER_HOME$/Library/Android/sdk" /> <roots> <annotationsPath> <root type="composite"> <root type="simple" url="jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/" /> </root> </annotationsPath> <classPath> <root type="composite"> <root type="simple" url="jar://$USER_HOME$/Library/Android/sdk/platforms/android-24/android.jar!/" /> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/platforms/android-24/data/res" /> </root> </classPath> <javadocPath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/docs/reference" /> </root> </javadocPath> <sourcePath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/sources/android-24" /> </root> </sourcePath> </roots> <additional jdk="1.8" sdk="android-24" /> </jdk> <jdk version="2"> <name value="Android API 23 Platform" /> <type value="Android SDK" /> <homePath value="$USER_HOME$/Library/Android/sdk" /> <roots> <annotationsPath> <root type="composite"> <root type="simple" url="jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/" /> </root> </annotationsPath> <classPath> <root type="composite"> <root type="simple" url="jar://$USER_HOME$/Library/Android/sdk/platforms/android-23/android.jar!/" /> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/platforms/android-23/data/res" /> </root> </classPath> <javadocPath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/docs/reference" /> </root> </javadocPath> <sourcePath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/sources/android-23" /> </root> </sourcePath> </roots> <additional jdk="1.8" sdk="android-23" /> </jdk>
注:需要找到:API 24 里面修改
<jdk version="2"> <name value="Android API 24 Platform" /> <type value="Android SDK" /> <version value="java version "1.8.0_91"" /> <homePath value="$USER_HOME$/Library/Android/sdk" /> <roots> <annotationsPath> <root type="composite"> <root type="simple" url="jar://$APPLICATION_HOME_DIR$/plugins/android/lib/androidAnnotations.jar!/" /> </root> </annotationsPath> <classPath> <root type="composite"> <root type="simple" url="jar://$USER_HOME$/Library/Android/sdk/platforms/android-24/android.jar!/" /> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/platforms/android-24/data/res" /> </root> </classPath> <javadocPath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/docs/reference" /> </root> </javadocPath> <sourcePath> <root type="composite"> <root type="simple" url="file://$USER_HOME$/Library/Android/sdk/sources/android-24" /> </root> </sourcePath> </roots> <additional jdk="1.8" sdk="android-24" /> </jdk>
0 0
- Sources for 'Android API 24 Platform' not found.[MAC]
- Android studio sources for android api 23 platform not found
- Android Studio: Sources for 'Android API 25 Platform' not found
- Sources for 'Android API 22 Platform' not found.
- Sources for 'Android API 25 Platform' not found
- Sources for 'Android API 25 Platform' not found
- 解决Sources for 'Android API 26 Platform' not found
- Android Sources for android api 24 not found 错误解决!
- Android Sources for android api 24 not found 错误解决!
- androidstudio查看源码时出现Sources for 'Android API 26 Platform' not found解决方法
- Souces for android api 24 platform not found 解决办法
- 转载 Souces for android api 24 platform not found
- Sources for Android API 23 Platfrom not found
- AS提示"sources for android api 23 not found"
- Decompiled .class file,bytecode version:52.0(Java 8) Source for 'Android API 24 Platform' not found
- Sources for Android API 23 Platfrom not found (Android Studio 2.0)
- Sources for Android API 23 Platfrom not found (Android Studio 2.0)
- Android Studio无法关联Api23源码-提示Souces for android api 23 platform not found
- hdu5745 La Vie en rose dp+bitset优化
- Javascript面试题
- java统计abacbacdadbc中的每个字母出现的次数,输出格式是:a(4)b(3)c(3)d(2) (未测试)
- XenCenter 解决虚拟机 IP Address Unknown问题
- Java中把字符串数组转换成整型数组 (未测试)
- Sources for 'Android API 24 Platform' not found.[MAC]
- zookeeper集群配置 Error: Could not find or load main class org.apache.solr.cloud.ZkCLI
- javascript 变量类型
- mysql配置信息
- 原图片转缩略图(未测试)
- markdown 页面编辑器
- Zip操作类
- 键盘和view
- 二分图最大匹配(匈牙利算法-DFS增广模板)