This setting is by far the easiest to understand. For example, you might want to support API level 10, but there is no APP_PLATFORM 10 so you would go back to the last available APP_PLATFORM, APP_PLATFORM 9.Ĭlick here to see distribution of API versions in the installed base in the wild What is minSdkVersion? Not every number exists for each concept. These same API version numbers are encoded by the Java Build.VERSION_CODES type: For example, several API versions (21 and 22) are "Lollipop" The cute code-names like "Lollipop" and "Nougat" are at a coarser granularity than API versions. For example, API level 10 corresponds to Android OS 2.3.3 and 2.3.4. MinSdkVersion, targetSdkVersion and APP_PLATFORM use Android's consistent numbering scheme for API levels:Ĭlick here to see Google's API Level ChartĪs you can see, the levels roughly correspond to Android releases, but do not even remotely match the number of the Android release (that would be too easy). Three of these concepts use API Level Numbers You can also make this setting by putting APP_PLATFORM := android-21 into your Application.mk file. ![]() target=Google Inc.:Google APIs:21 for level 21 (and usually the way that "21" got there is by being the -t/-target option to a command-line invocation of the android create project or android update project command). Typically this setting is found in the project.properties file at the root of your project as the last number at the end of the target= line, e.g. 15,19,21) is a setting you make in your Native NDK project. This setting affects only Java development.ĪPP_PLATFORM (e.g. 15,19,21) is a different setting you make in your AndroidManifest.xml in a element under the element. ![]() This setting affects both NDK (native) and Java development. 15,19,21) is a setting you make in your AndroidManifest.xml in a element under the element. r10e, r13b): this is the version of the Android NDK release (the tar/zip file) you download from Google. ![]() To find out why that is and whether you have other options, read on. To prevent your native Android app from mysteriously crashing on older customer devices, the short answer is to make your NDK APP_PLATFORM (in project.properties or Application.mk) the same as your minSdkVersion (in AndroidManifest.xml).īut depending on what NDK features you use, doing so may severely limit the set of customers who can download your app. This answer brings together hard-to-find but important information from many excellent websites and stackoverflow answers/comments on this under-documented NDK subject: Avoiding Crashes: NDK Version, minSdKVersion, targetSdkVersion, and APP_PLATFORM (in project.properties) The short version
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |