如何确定Android源代码的版本?

发布于 2024-12-23 12:33:38 字数 307 浏览 9 评论 0原文

我有一份Android源代码的副本,但不知道它是什么版本的android(我不久前下载了它,不记得是否同步到了repo的头部)。

有没有办法确定这一点?我查看了几个示例项目的清单,它们指出:

<uses-sdk android:targetSdkVersion="11"/>

所以我想我可以假设它是 11 或更高,但我不确定是哪一个。文件结构如下所示:

android src 文件结构

I have a copy of the Android source code, but don't know what version of android it is (I downloaded it a while ago and can't remember if I synced to the head of the repo or not).

It there a way to determine this? I've looked in the manifest for a couple of the sample projects and they state:

<uses-sdk android:targetSdkVersion="11"/>

so I think I can assume it is either 11 or above, but I'm not certain which one. This is what the file structure looks like:

android src file structure

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尾戒 2024-12-30 12:33:38

AOSP SDK 版本在 build/core/version_defaults.mk 中定义。

The AOSP SDK version is defined in build/core/version_defaults.mk.

一瞬间的火花 2024-12-30 12:33:38

我假设那是 platform/ 目录。如果是这样,请查看frameworks/base/api。您将找到一个代表已提交的每个 API 级别的文本文件 - 找到该目录中编号最大的文件作为您的答案。

示例: https://github.com/android/platform_frameworks_base/tree/master/api

I assume that's the platform/ directory. If so, take a look in frameworks/base/api. You'll find a text file representing each API level that's been committed -- find the largest numbered file in that directory for your answer.

Example: https://github.com/android/platform_frameworks_base/tree/master/api

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文