MAC上使用androidstudio如何关联源码
来源:互联网 发布:linux php环境 编辑:程序博客网 时间:2024/05/18 15:53
http://blog.csdn.net/qq_26909291/article/details/51490154
http://blog.csdn.net/qq_26909291/article/details/51490154
http://blog.csdn.net/qq_26909291/article/details/51490154
http://blog.csdn.net/qq_26909291/article/details/51490154
一路cd 进去到你mac的这个目录下 ~/username/Library/Preferences/AndroidStudio2.X/options/jdk.table.xml,然后open it~~
在sourcePath下面加入<root type="simple" url="jar://$USER_HOME$/Library/Android/sdk/sources/android-22/" />就可以了,当然啦我的是22,你们的可能是更高或者更低~~总之找到对应版本的sourcePath加上对应的这句话,就可以啦~~~,
2016.7.23添加:
有的AndroidStudio很顽固,就算像上面那样设置了,重启之后还是会刷新到以前的状态,现在有一个究极解决方案!!!
<jdk version="2">
<name value="Android API 22 Platform (1)" />
<type value="Android SDK" />
<version value="java version "1.8.0_74"" />
<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-22/android.jar!/" />
<root type="simple" url="file://$USER_HOME$/Library/Android/sdk/platforms/android-22/data/res" />
</root>
</classPath>
<javadocPath>
<root type="composite" />
</javadocPath>
<sourcePath>
<root type="composite">
<root type="simple" url="file://$USER_HOME$/Library/Android/sdk/sources/android-22" />
</root>
</sourcePath>
</roots>
<additional jdk="1.8" sdk="android-22" />
</jdk>
对的!!!就像上面一样,复制一个,名字后面加上(1)就可以了...目前还不知道什么原因,但是解决了..- MAC上使用androidstudio如何关联源码
- MAC上使用androidstudio如何关联源码
- AndroidStudio使用技巧--关联源码
- 工具使用:AndroidStudio关联源码
- 解决Mac AndroidStudio无法关联源码问题
- 解决Mac Androidstudio无法关联源码问题
- AndroidStudio关联源码
- AndroidStudio关联源码的解决之道
- AndroidStudio上库工程关联
- Mac AndroidStudio Git 使用
- 查看源码 throw new RuntimeException("Stub!") 教你使用AndroidStudio关联源代码
- 查看源码 throw new RuntimeException("Stub!") 教你使用AndroidStudio关联源代码
- AndroidStudio上github使用
- eclipse如何关联源码
- 如何在Mac上使用卡拉OK
- 如何在Mac上配置/使用Github
- 如何在Mac上使用Wireshark
- 如何在Mac上配置/使用Github
- 如何搭建高可用架构(四)--负载均衡(LVS实现)
- Centos7.4安装Nginx及优化(一)
- maven 运行后提示数组越界问题解决。
- Bootstrap(三十六)
- Expert Apache Cassandra Administration.pdf 2017 英文原版 免费下载
- MAC上使用androidstudio如何关联源码
- 如何搭建高可用架构(五)--LVS+Nginx配置实现
- 前端特殊错误,Bug汇总
- python学习一--基础知识
- Bootstrap(三十七)
- JVM调优的liunx命令
- iOS小技巧
- KMP算法
- pip、lxml、requests安装