如果我使用 android 4.1.2 (API 16) Android SDK,我的应用程序将在 Android 2.3 上运行 [英] if i use android 4.1.2 (API 16) Android SDK will my apps work on Android 2.3

查看:56
本文介绍了如果我使用 android 4.1.2 (API 16) Android SDK,我的应用程序将在 Android 2.3 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用 android 4.1.2 (API 16) Android SDK,我的应用程序将在 Android 2.3 手机上运行.我已经下载了 android 4.1.2 sdk 工具和其他软件包.

if i use android 4.1.2 (API 16) Android SDK will my apps work on Android 2.3 phones. i have downloaded android 4.1.2 sdk tools and other packages.

推荐答案

您需要将清单中的最小 SDK 属性设置为 2.3,以确保您的应用可以在早期版本的操作系统上运行.

You will need to set the minimum SDK attribute in your manifest to 2.3 to ensure you app will work on earlier versions of the OS.

假设您没有使用更高版本的任何 API 调用,您的应用将正常运行.

Your app will work fine, assuming you are not using any API calls from a later version.

Android 开发团队建议您始终针对您可以支持的最新版本进行编译.所以,你走在正确的轨道上.

The Android Dev team suggests you always compile against the newest version you can support. So, you are on the right track.

因此,最重要的是,您走在正确的轨道上,只需确保针对 2.3.3 版本的模拟器测试您的应用,以确保您没有使用任何不受支持的 API 调用.

So bottom line, you are on the right track, just make sure to test your app against a 2.3.3 version of the emulator to ensure you are not using any un-supported API calls.

这篇关于如果我使用 android 4.1.2 (API 16) Android SDK,我的应用程序将在 Android 2.3 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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