如何查找每个版本的android支持库源代码

如何查找每个版本的android支持库源代码

本文介绍了如何查找每个版本的android支持库源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一些问题,所以我想找到Android支持库的源代码.例如,我想阅读support.appcompat-v7中版本19.0.1和20.0.0的ActionBarActivity.java源代码,并找出这两个版本之间的区别.

I meets some problems so I want to find the source code of the Android support libraries . For example , I want to read the ActionBarActivity.java source code in version 19.0.1 and 20.0.0 in support.appcompat-v7 , and find out the difference between the two versions.

我找到了 https://github.com/android/platform_frameworks_base ,但该发行版已命名为就像android-xxx_rxx,但不像19.0.1.

I found the https://github.com/android/platform_frameworks_base , but the release have named as android-x.x.x_rxx but not like 19.0.1 .

推荐答案

您可以从此处按版本下载预构建的源jar https://android.googlesource .com/platform/prebuilts/maven_repo/android/+/master/com/android/support/appcompat-v7

You can download prebuilt source jars by version from herehttps://android.googlesource.com/platform/prebuilts/maven_repo/android/+/master/com/android/support/appcompat-v7

尽管他们似乎已经删除了那里早于22.1.0的任何内容的来源.

Although it seems they have removed sources for anything older than 22.1.0 there.

或者,您可以在此处 https://android.googlesource.com/platform/frameworks/support/+log/master/v7/appcompat/src/android/support/v7/app/ActionBarActivity .java

这篇关于如何查找每个版本的android支持库源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 02:08