API等级 1 - 3:
Android 1.0 (Astro,也被称为“铁臂阿童木”)
Android 1.1 (Petit Four,即“花色小蛋糕”)
Android 1.5 (Cupcake)
API等级 4:
Android 1.6 (Donut)
API等级 5 - 7:
Android 2.0/2.0.1/2.1 (Éclair)
API等级 8:
Android 2.2/2.2.3 (Froyo)
API等级 9 - 10:
Android 2.3/2.3.1/2.3.2/2.3.3-2.3.7 (Gingerbread)
API等级 11 - 13:
Android 3.0/3.1/3.2 (Honeycomb)
API等级 14 - 16:
Android 4.0/4.0.1-4.0.4 (Ice Cream Sandwich)
Android 4.1 (Jelly Bean)
API等级 17 - 19:
Android 4.2/4.3 (Jelly Bean)
Android 4.4/4.4W (KitKat)
API等级 21 - 22:
Android 5.0/5.1 (Lollipop)
API等级 23:
Android 6.0 (Marshmallow)
API等级 24 - 28:
Android 7.0 - 8.1 (Nougat, Oreo)
注意:API等级24到28之间没有具体的Android版本名称,而是代表了多个后续版本的Android(Nougat、Oreo等),这些版本在API等级上进行了递增。
API等级 29及以上:
Android 9 (Pie) 及后续版本(如Android 10、11、12等)
注意:从Android 9开始,谷歌没有为每个版本都提供一个甜点名称,而是直接使用版本号。
1: "Android 1.0 (Astro)",
2: "Android 1.1 (Petit Four)",
3: "Android 1.5 (Cupcake)",
4: "Android 1.6 (Donut)",
5: "Android 2.0/2.0.1/2.1 (Éclair)",
8: "Android 2.2/2.2.3 (Froyo)",
9: "Android 2.3 (Gingerbread)",
10: "Android 2.3.3-2.3.7 (Gingerbread)",
11: "Android 3.0 (Honeycomb)",
12: "Android 3.1 (Honeycomb)",
13: "Android 3.2 (Honeycomb)",
14: "Android 4.0/4.0.1-4.0.4 (Ice Cream Sandwich)",
15: "Android 4.0.3-4.0.4 (Ice Cream Sandwich)",
16: "Android 4.1 (Jelly Bean)",
17: "Android 4.2 (Jelly Bean)",
18: "Android 4.3 (Jelly Bean)",
19: "Android 4.4/4.4W (KitKat)",
21: "Android 5.0/5.1 (Lollipop)",
22: "Android 5.1 (Lollipop)",
23: "Android 6.0 (Marshmallow)",
24: "Android 7.0 (Nougat)",
25: "Android 7.1 (Nougat)",
26: "Android 8.0 (Oreo)",
27: "Android 8.1 (Oreo)",
28: "Android 9 (Pie)",
29: "Android 10",
30: "Android 11",
31: "Android 12",
32: "Android 12L",
33: "Android 13",
34: "Android 14",
获取apk的信息
aapt dump badging '.\百度地图.apk'
package: name='com.baidu.naviauto' versionCode='1367' versionName='20.0.2' platformBuildVersionName='' sdkVersion:'23' targetSdkVersion:'33'
sdkVersion:'23'
这指的是应用的
minSdkVersion
(最低支持的Android SDK版本)。它表示该应用至少需要Android 6.0(Marshmallow,API级别23)才能运行。targetSdkVersion:'33'
这指的是应用的
targetSdkVersion
。它告诉Android系统该应用是为哪个版本的Android设计和测试的。对于API级别33,这对应于Android 13。