Android的SDK源$ C ​​$ C [英] Android SDK source code

查看:96
本文介绍了Android的SDK源$ C ​​$ C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要看看Android SDK中的的.java 文件。我已经开发的应用程序之前,但我从来不需要看他们,所以它不是一个问题,那么。我看到有一个jar文件的android.jar 包含结构化的,但实际的来源是不存在的所有类文件。 混帐使各种问题给我,因为我后面一个奇怪的代理,以便<一个href="http://source.android.com/source/using-eclipse.html">http://source.android.com/source/using-eclipse.html一直没有很大的帮助。我该怎么办?

I need to look at the .java files of the android sdk. I have developed applications before but I never needed to look at them so it wasn't a problem then. I saw there is a jar file android.jar that contains all the class files structured but actual sources are not there. git gives various problems to me because I am behind a weird proxy so http://source.android.com/source/using-eclipse.html hasn't been very helpful. What should I do?

修改:我说的是Java文件,我只想澄清。而如果你是好的在线浏览code,<一个href="http://stackoverflow.com/questions/449763/where-can-i-browse-android-source-$c$c-on-line">Where我可以浏览Android源$ C ​​$ C上线? <一个href="http://www.google.com/$c$csearch/p?hl=en#uX1GffpyOZk/core/java/android/">http://www.google.com/$c$csearch/p?hl=en#uX1GffpyOZk/core/java/android/

推荐答案

刚打开的Andr​​oid SDK管理器,然后选中来源为Android SDK 您要支持,然后点击安装包的API级别

Just open the Android SDK Manager and select the Sources for Android SDK of the API level you are trying to support and click Install packages:

(在这种情况下,我选择了那些SDK V4.3 API-18 和SDK的 v4.2.2 API-17 ,但我已经让他们安装)

(In this case I selected those for SDK v4.3 API-18 and SDK v4.2.2 API-17 but I already have them installed)

如果由于某种原因,你的SDK管理器按钮没有Eclipse工具栏中,的遵循此建议

If for some reason you SDK manager button doesn't show up on the Eclipse toolbar, follow this recommendations.

要链接源$ C ​​$ C到Eclipse刚刚按照此说明; Android的源通常是在 [ANDROID_SDK_FOLDER] / SDK /来源/ android- [API_LEVEL]

To link the source code to Eclipse just follow this instructions; Android Sources are usually under [ANDROID_SDK_FOLDER]/sdk/sources/android-[API_LEVEL]

这篇关于Android的SDK源$ C ​​$ C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆