如何确定Android源代码的版本?
我有一份Android源代码的副本,但不知道它是什么版本的android(我不久前下载了它,不记得是否同步到了repo的头部)。
有没有办法确定这一点?我查看了几个示例项目的清单,它们指出:
<uses-sdk android:targetSdkVersion="11"/>
所以我想我可以假设它是 11 或更高,但我不确定是哪一个。文件结构如下所示:
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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AOSP SDK 版本在
build/core/version_defaults.mk
中定义。The AOSP SDK version is defined in
build/core/version_defaults.mk
.我假设那是
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 inframeworks/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