1

我已经使用 appcompat 库更新了我的应用程序,现在许多设备与我的应用程序不兼容。我没有改变清单中的任何东西。

这是我在清单中的内容:

<uses-sdk
        android:minSdkVersion="7"
        android:targetSdkVersion="10"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.SEND_SMS"/>

<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>

这是开发人员控制台对我说的:

Previously active APKs supported more devices than those in the draft configuration.      
Some devices will not receive upgrades.
Devices currently running version 15 are no longer supported by the current configuration. Such devices will not receive upgrades. 
API levels in range 10+ and 
Screen layouts containing any of [small, normal, large, xlarge] and 
Features containing all of [android.hardware.CAMERA, android.hardware.LOCATION, android.hardware.TELEPHONY, android.hardware.TOUCHSCREEN, android.hardware.location.GPS, android.hardware.screen.PORTRAIT] but excluding any of [android.hardware.camera.AUTOFOCUS]

Devices currently running version 14 are no longer supported by the current configuration. Such devices will not receive upgrades. 
API levels in range 10+ and 
Screen layouts containing any of [small, normal, large, xlarge] and 
Features containing all of [android.hardware.TOUCHSCREEN, android.hardware.screen.PORTRAIT] but excluding any of [android.hardware.CAMERA, android.hardware.LOCATION, android.hardware.TELEPHONY, android.hardware.location.GPS]

有人可以解释一下控制台在说什么,并建议采取一些措施来恢复兼容性吗?

4

1 回答 1

1

所以,从谷歌支持反馈:

在这种情况下,由于与以下权限/功能冲突,您的应用程序不兼容:android.hardware.camera.autofocus。了解更多信息...

我真的很感谢他们的帮助,而且速度足够快

但!这条线路在过去 2 年一直存在。现在,在我使用 appcompat 更新项目后,谷歌决定限制它。该应用程序绝对不关心自动对焦。我不知道是谁在我之前写了这句话。

我在这里阅读了所有类似的问题并尝试了几乎所有问题,但就我而言,我认为只有支持才能帮助我。

于 2013-09-26T20:13:46.627 回答