如何更改项目的minSdkVersion? [英] How to change the minSdkVersion of a project?

查看:573
本文介绍了如何更改项目的minSdkVersion?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在构建一个项目,并在Android模拟器上对其进行测试.

I have been building a project and testing it on the Android emulator.

我意识到我将minSdkVersion设置为10.现在,我有一部手机可以测试该程序,但是它的 sdk版本是7.

I realized that I set the minSdkVersion to 10. Now, I have a phone to test the program on, but its sdk version is 7.

我试图进入清单文件,并将sdk版本更改为7,但是每次运行该程序时,它都会崩溃.

I tried to go into the manifest file, and change the sdk version to 7, but every time I run the program, it crashes.

如何将sdk版本重建或更改为较小的数字(从10更改为7),以确保我的应用程序能够在较旧的手机上运行?

How can I rebuild or change the sdk version to a lower number (from 10 to 7), so that I can make sure my app is able to run on older phones?

推荐答案

使用AVD Manager创建新的AVD,并将目标设置为API级别7.尝试使用该AVD运行应用程序.此外,请确保清单文件中的最小sdk至少设置为7.

Create a new AVD with the AVD Manager and set the Target to API Level 7. Try running your application with that AVD. Additionally, make sure that your min sdk in your Manifest file is at least set to 7.

这篇关于如何更改项目的minSdkVersion?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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