美文网首页
AndroidStudio 关联源码

AndroidStudio 关联源码

作者: 一凡和梓墨 | 来源:发表于2016-07-04 13:48 被阅读245次

    Sources forAndroidAPI 23 Platfrom not found (Android Studio 2.0)

    参考链接:

    stackoverflowhttp://stackoverflow.com/questions/36814755/sources-for-android-api-23-platfrom-not-found-android-studio-2-0

    cnblogshttp://www.cnblogs.com/permanent2012moira/p/5447419.html

    上面两个链接中都未说出重点

    下面会说.

    第一步:找到jdk.table.xml

    Windows系统中:

    C:\Users{USER_NAME}.AndroidStudio2.0\config\options\jdk.table.xml

    Linix系统:

    ~/Library/Preferences/AndroidStudioBeta/options/jdk.table.xml

    第二步:找到你要关联的源码版本:

    你可能安装了很多sdk版本

    如下图

    但是问题是现在你找不到的是api 23:

    所以你要找到的是23对应的Android API 23 Platform

    重点就是:

    根据需要找到对应的Android API XX Platform,然后添加sources关联

    “根据需要”,需要是啥,就是android studio的那句

    Sources for ‘Android API XX Platform’ not found

    关联项目依赖包源码


    相关文章

      网友评论

          本文标题:AndroidStudio 关联源码

          本文链接:https://www.haomeiwen.com/subject/tawcjttx.html