与 0 台设备兼容的 Android 应用

标签 android compatibility

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

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

应用的 list :

<?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>

最佳答案

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

……应该是……

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

uses-featurecase sensitivelower case ,所以实际上您是在声明您正在使用任何设备上都不存在的功能。

关于与 0 台设备兼容的 Android 应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16822676/

相关文章:

java - 需要安装Java 6 for Mac才能编译Android源码

java - 实现枚举以实现反向兼容性

python - 嵌套参数未编译

testing - 针对许多程序自动进行兼容性测试

android - ASE 是否成熟到可以开始开发 Android 应用程序?

java - 从颜色选择器获取错误的颜色值

Android Studio Java错误

android - 使用 kotlin 设置 Realm 时出错

html - css 和 html 的浏览器兼容性问题

linux - 共享库兼容性问题