我想用已更改的targetSdkVersion更新Playstore上的应用程序 [英] I want update the Application on playstore with changed targetSdkVersion

查看:166
本文介绍了我想用已更改的targetSdkVersion更新Playstore上的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将应用程序更新为 playstore ,其中包含以下用途-SDK:

  < uses-sdk 
android:maxSdkVersion =23
android:minSdkVersion =17
android:targetSdkVersion =23/>

我想降级我的targetSdkVersion 23 22。我已经完成了。如果我上传到playstore,这个更新是否能正常工作?

解决方案

你根本没有任何问题。你对< uses-sdk> 的看法是,你的应用程序已经过全面测试,可以在22版本中运行,甚至可以在17之前运行在较低版本中。



我建议你看看这个 documentation


android:targetSdkVersion



指定应用程序所针对的API级别的整数。如果未设置
,则默认值等于给予minSdkVersion的值。此
属性通知系统您已经针对目标
版本进行了测试,并且系统不应该启用任何兼容性行为
来维持您的应用程序与目标版本的向前兼容性。
应用程序仍然可以在旧版本上运行(低至
minSdkVersion)。

随着Android随着每个新版本的发展,一些行为和甚至
的外观可能会改变。但是,如果平台的API级别比应用程序的targetSdkVersion声明的版本高$ bbb,则
系统可以启用兼容性行为以确保您的应用程序
继续按照您的预期方式工作。您可以通过指定targetSdkVersion来匹配它运行的平台的
API级别来禁用这种
兼容性行为。例如,如果将
这个值设置为11或更高,则允许系统在运行Android 3.0或更高版本时将新的默认
主题(Holo)应用到您的应用程序,并且
也会禁用屏幕在大屏幕上运行时兼容性模式
(因为对API级别11的支持隐式支持大屏幕)。

系统可能允许
基于您为此属性设置的值。其中几个
行为由
Build.VERSION_CODES引用中的相应平台版本描述。



保持您的应用程序以及每个Android版本,您
应增加此属性的值以匹配最新的API
级别,然后在相应的
平台版本上彻底测试您的应用程序。



I have already updated an app to playstore with below-mentioned uses-SDK:

  <uses-sdk
      android:maxSdkVersion="23"
      android:minSdkVersion="17"
      android:targetSdkVersion="23"/>

I want to downgrade my targetSdkVersion "23" to "22". I've done it. if I upload to playstore, will the update work for all the users properly?

解决方案

You won't have any problem at all. What you are saying with your <uses-sdk> is that your app is fully tested to run in version 22 and can even run in lower versions until 17.

I suggest you to take a look to this documentation ver carefully.

android:targetSdkVersion

An integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVersion. This attribute informs the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app's forward-compatibility with the target version. The application is still able to run on older versions (down to minSdkVersion).

As Android evolves with each new version, some behaviors and even appearances might change. However, if the API level of the platform is higher than the version declared by your app's targetSdkVersion, the system may enable compatibility behaviors to ensure that your app continues to work the way you expect. You can disable such compatibility behaviors by specifying targetSdkVersion to match the API level of the platform on which it's running. For example, setting this value to "11" or higher allows the system to apply a new default theme (Holo) to your app when running on Android 3.0 or higher and also disables screen compatibility mode when running on larger screens (because support for API level 11 implicitly supports larger screens).

There are many compatibility behaviors that the system may enable based on the value you set for this attribute. Several of these behaviors are described by the corresponding platform versions in the Build.VERSION_CODES reference.

To maintain your application along with each Android release, you should increase the value of this attribute to match the latest API level, then thoroughly test your application on the corresponding platform version.

这篇关于我想用已更改的targetSdkVersion更新Playstore上的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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