【问题标题】:Google play store - This item is not compatible with your deviceGoogle Play 商店 - 此项目与您的设备不兼容
【发布时间】:2013-07-08 19:15:23
【问题描述】:

出于某种原因,我可以编译我的 android 应用程序并将 .APK 文件通过电子邮件发送给自己并安装它。因此,我将我的应用程序提交到了 Google Play 市场。现在,出于某种原因,Google Play 商店显示“此项目与您的设备不兼容。”。如果我实际上可以通过 .APK 安装到我的手机,为什么会这样说?我必须怎么做才能告诉 Google Play 该应用确实与我的设备兼容?

我的一些朋友通过 google play 商店安装我的应用程序没有问题。但是其他一些人也有和我一样的问题,他们可以通过我的 .APK 文件安装,但不能通过 google play store。

我做错了什么?

清单文件如下:

<?xml version="1.0" encoding="utf-8"?>

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

<uses-feature
    android:name="android.hardware.sip.voip"
    android:required="true" />
<uses-feature
    android:name="android.hardware.wifi"
    android:required="true" />
<uses-feature
    android:name="android.hardware.microphone"
    android:required="true" />

<uses-permission android:name="android.permission.USE_SIP" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

<application
    android:allowBackup="true"
    android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:screenOrientation="portrait"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.hello20.controller.MainActivity"
        android:label="@string/app_name"
        android:launchMode="singleInstance" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.hello20.controller.EventListing"
        android:label="@string/title_activity_event_listing"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.hello20.controller.Conference"
        android:label="@string/title_activity_conference"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.hello20.controller.ConferenceSignin"
        android:label="@string/title_activity_conference_signin"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.hello20.controller.Etiquette"
        android:label="@string/title_activity_etiquette"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.hello20.controller.MakeCall"
        android:label="@string/title_activity_make_call"
        android:screenOrientation="portrait" >
    </activity>

    <receiver
        android:name="com.hello20.library.IncomingCallReceiver"
        android:label="Call Receiver" >
    </receiver>

    <activity
        android:name="com.hello20.controller.CallScreen"
        android:label="@string/title_activity_call_screen"
        android:screenOrientation="portrait" >
    </activity>
    <activity
        android:name="com.hello20.controller.CallHistory"
        android:label="@string/title_activity_call_history" >
    </activity>
    <activity
        android:name="com.hello20.controller.WebViewer"
        android:label="@string/title_activity_web_viewer" >
    </activity>
</application>

更新

这是应用程序的链接:

https://play.google.com/store/apps/details?id=com.hello20&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5oZWxsbzIwIl0.

如您所见,什么都没有启用……我们至少不适合我。我的帐户有四台设备可用。它们如下:

  1. 银河 S3:4.2.2
  2. Galaxy Tab 10.1:4.1.2(我认为)
  3. Galaxy Tab 7 第一版:4.2.2
  4. Galaxy S2 LTE:4.x.x。 (不知道,因为是我老婆)

附加说明

当我们从清单文件中删除所有uses-feature 元素,编译并上传时,所有设备都支持该应用程序。如果即使 uses-feature 元素之一在清单文件中,则任何设备都不支持它。那么在清单文件中使用uses-feature 元素的正确方法是什么?

【问题讨论】:

  • 你有什么设备?
  • 我的设备是 Galaxy Note 贝尔三星 SGH-I717R
  • 我做错了什么? - 你忘了向我们提供任何细节。您不能指望我们猜测清单的内容、您发布应用程序时的任何应用程序设置以及您的设备型号。
  • 如果没有必要,您是否尝试过降低最低 SDK?
  • 我们需要那个版本的 SDK。我不记得哪个权限或代码需要它。无论哪种方式,我都在 S3 上运行 4.2.2。我已经多次部署到我的手机,并且我已经部署到运行 4.1.2 的 Galaxy Tab 10.1(我认为)。两者都成功了,但在应用商店中什么也没有显示。

标签: android google-play


【解决方案1】:
android.hardware.sip.voip

此处未列出:http://developer.android.com/guide/topics/manifest/uses-feature-element.html 因此,您似乎声明了 hoyr 应用程序需要不存在的硬件功能。

尝试使用

android.software.sip.voip

改为

【讨论】:

  • 这是由文档中的拼写错误引起的:developer.android.com/guide/topics/connectivity/…
  • Google 教程通常不是最优质的信息来源。根据这些示例编写代码时最好检查参考。
  • 我们尝试了 piotrpo 建议,但它仍然不起作用。使事情正常进行的唯一方法是从我们的清单中删除所有 uses-feature 元素。
  • 还有一个建议 - 尝试删除这些行,然后从键盘再次添加 - 有时空格会造成混乱。特别是如果您从 www 页面粘贴这些行。
【解决方案2】:

我们最终删除了所有 uses-feature 节点,从而解决了问题。

【讨论】:

  • 与其删除它们,不如将它们标记为不需要更有意义,除非您的应用程序真的、真的没有该功能就无法正常运行。
猜你喜欢
  • 1970-01-01
  • 2017-08-25
  • 2018-07-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多