如何确定Android源$ C ​​$ C的版本? [英] How to determine version of Android source code?

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

问题描述

我有Android源$ C ​​$ C的副本,但不知道它是什么版本的安卓(我前一阵子下载了它,并可以不记得我是否同步到回购与否的头)。

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"/>

所以我觉得我可以假设它要么是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:

推荐答案

我想这就是平台/ 目录。如果是这样,拿在框架/基/ API 一起来看看。你会发现一个文本文件重新presenting该公司一直致力于每个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.

例如: https://github.com/android/platform_frameworks_bas​​e/tree/master/ API

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

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