android– 我的应用程序兼容2.3.3,如何使它兼容

android– 我的应用程序兼容2.3.3,如何使它兼容,第1张

概述我正在开发一个与2.3.3及更高版本兼容应用程序<uses-sdkandroid:minSdkVersion="10"android:targetSdkVersion="10"android:maxSdkVersion="17"/><supports-screensandroid:largeScreens="true"android:normalS

我正在开发一个与2.3.3及更高版本兼容的应用程序

<uses-sdk     androID:minSdkVersion="10"    androID:targetSdkVersion="10"    androID:maxsdkVersion="17"/><supports-screens    androID:largeScreens="true"    androID:normalScreens="true"    androID:smallScreens="true"    androID:xlargeScreens="true" /><compatible-screens>    <screen        androID:screenDensity="mdpi"        androID:screenSize="normal" />    <screen        androID:screenDensity="hdpi"        androID:screenSize="large" />    <screen        androID:screenDensity="xhdpi"        androID:screenSize="xlarge" /></compatible-screens>

在我开发的时候,它正在开发我的2.3.6三星galaxy设备.

但是,将我的应用程序放入Play商店后,它显示它与我的设备不兼容.这是为什么?

解决方法:

从文档here:

androID:targetSdkVersion@H_301_21@

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. Introduced in: API Level 4@H_301_21@

例如,尝试将targetSDK属性增加到“17”.

总结

以上是内存溢出为你收集整理的android – 我的应用程序兼容2.3.3,如何使它兼容全部内容,希望文章能够帮你解决android – 我的应用程序兼容2.3.3,如何使它兼容所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1117010.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存