6

我的应用程序https://play.google.com/store/apps/details?id=com.picturesexperience.camera在任何移动设备上均不可见。从 APK 文件安装没有问题(这实际上是我现在分发我的应用程序的方式),运行良好,但由于某种原因 Google Play 没有列出它。有什么建议么。

该应用程序使用来自 Zxing 的 QR 码扫描库,其他一切都是自定义编码的。

应用程序清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.picturesexperience.camera"
    android:versionCode="2"
    android:versionName="1.4" >

    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />

    <uses-feature android:name="android.hardware.CAMERA" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.picturesexperience.camera.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:configChanges="orientation|keyboardHidden" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".CameraActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name=".UploadActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name=".LoginActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name=".PictureViewActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden" />
        <activity android:name="com.google.zxing.client.android.CaptureActivity"
            android:screenOrientation="landscape"
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            android:windowSoftInputMode="stateAlwaysHidden">
            <intent-filter>

    <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action android:name="com.google.zxing.client.android.SCAN"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
    </application>

</manifest>
4

5 回答 5

12
<uses-feature android:name="android.hardware.CAMERA" />

...应该...

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

uses-feature区分大小写小写的,因此实际上您是在声明您正在使用任何设备上都不存在的功能。

于 2013-05-29T20:01:25.653 回答
3

区分大小写

权限和功能区分大小写。请尝试以下方法:

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

必需=假

还要确保添加android:required="false"最大设备兼容性。否则,没有后置摄像头的设备(如 nexus 7 平板电脑)仍将被排除在外。

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

更多信息在这里:http: //developer.android.com/guide/topics/manifest/uses-feature-element.html

于 2013-05-29T20:07:01.357 回答
1

我遇到了这个问题,但是经过几个小时的灼热,我在我的应用程序中找到了解决方案。我在用

<uses-feature android:name="android.permission.READ_PHONE_STATE" />

虽然它应该是

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

所以我想说,请仔细检查您的权限和羽毛。还要删除您的应用程序中不需要的那些权限,这将增加支持设备。

我希望它对你有用。

于 2014-12-05T08:22:18.257 回答
0

您可以通过检查设备目录来检查您的应用程序不兼容的原因:

  • 从菜单中选择设备目录

菜单条目“设备目录”

  • 显示所有设备

设备过滤器

  • 然后选择任何设备,单击蓝色箭头查看详细信息并检查条目“跟踪状态”

在此处输入图像描述

于 2021-07-22T09:06:57.977 回答
0

我知道现在回答已经晚了,我面临同样的问题。将所有用户功能设置为false后,Play 商店仍显示支持的设备为零

这是解决方案,希望对某人有所帮助

 <uses-feature
            android:glEsVersion="0x00020000"
            android:required="true" />

<supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:resizeable="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

希望它有所帮助。

于 2017-07-13T11:52:13.097 回答