Can Android 2.3 SDK cross compile to earlier versions?

巧了我就是萌 提交于 2019-12-10 22:58:02

问题


I have an Android app that's been on the market since v1 of the OS. I haven't touched it since and thus forgot all that there was to forget about developing for Android.

With the new Android 2.3 SDK, can I compile my app so that users of previous OS releases can also use it (say 1.6 or 2.1)?


回答1:


Sure. Just put minSdkVersion in your Manifest.




回答2:


Android has changed A LOT since the very first version. many things have been deprecated or aren't supported anymore. You should check what's you application is using that's not being supported now. 2.3 has got major changes in everything including the Dalvik. The things it has stopped supporting will crash if your app uses them. I would suggest a revamp of the APIs that your app is using.



来源:https://stackoverflow.com/questions/4373489/can-android-2-3-sdk-cross-compile-to-earlier-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!