我一直在构建一个项目,并在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?
发布评论