[英]How can I determine my Android API level?
How can I know which Android API level I am using. 我怎么知道我正在使用哪个Android API级别。 I need to make sure I am using version 1.1.0.
我需要确保我使用的是1.1.0版。
Edit: 编辑:
My bad. 我的错。 I need level 14.
我需要14级。
Thank you. 谢谢。
Build.VERSION.RELEASE
将为您提供版本号作为String,例如1.5
How can I know which Android API level I am using
我怎么知道我正在使用哪个Android API级别
I do not know what you mean by "using". 我不知道您所说的“使用”是什么意思。
You can determine the API Level of the device that you are running on via Build.VERSION.SDK_INT
. 您可以通过
Build.VERSION.SDK_INT
确定运行设备的API级别。
I need to make sure I am using version 1.1.0
我需要确定我使用的是1.1.0版本
There was never a "1.1.0" release of Android. 从来没有发布过“ 1.1.0”的Android。 Android 1.1 did not have a ".0" suffix.
Android 1.1没有后缀“ .0”。 Android 1.1 was released in early 2009 and is used on approximately zero devices today.
Android 1.1于2009年初发布,如今已在大约零个设备上使用。
<uses-sdk android:minSdkVersion="14" />
in your AndroidManifest.xml
您的
AndroidManifest.xml
<uses-sdk android:minSdkVersion="14" />
In general you're also interested in the compileSdkVersion
of the project, which you can see in your build.gradle file. 通常,您还对项目的
compileSdkVersion
感兴趣,您可以在build.gradle文件中看到该项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.