谷歌应用商店中没有零支持设备(支持设备部分)。

3

"谷歌应用商店显示没有支持的设备,我不知道为什么。我到处搜索但没有得到答案。"

"我将其上传为ALPHA版本,并在其中包括了测试人员列表。"

"我已经在我的三星手机上进行了测试,但出现了错误:应用程序与此版本不兼容,没有理由它不能与每个Android设备兼容。"

## 这是我的清单文件: ##

        <?xml version="1.0" encoding="utf-8"?>
        <manifest xmlns:android="http://schemas.android.com/apk/res/android"
            package="com.raphapp.tulyu" >


            <uses-permission android:name="android.permission.INTERNET" />
            <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
            <uses-permission android:name="android.permission.WAKE_LOCK" />
            <uses-permission android:name="android.permission.GET_ACCOUNTS" />
            <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
            <uses-permission android:name="com.android.vending.BILLING" />
            <permission
                android:name="com.raphapp.tulyu.permission.C2D_MESSAGE"
                android:protectionLevel="signature" />

            <uses-permission android:name="com.raphapp.tulyu.permission.C2D_MESSAGE" />
            <uses-permission android:name="vibrate" />
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
            <!-- FOR Storage -->
            <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
            <uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
            <!-- FOR Camera -->
            <uses-permission android:name="android.permission.CAMERA" />
            <uses-permission android:name="android.permission.FLASHLIGHT" />
            <uses-permission android:name="android.permission.SEND_SMS" />
            <uses-permission android:name="android.permission.VIBRATE" />
            <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
            <uses-permission android:name="android.permission.BILLING" />
            <uses-permission android:name="android.permission.READ_PHONE_STATE" />

            <!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
            <uses-feature
                android:name="android.hardware.camera"
                android:required="false" />
            <uses-feature
                android:name="android.hardware.camera.front"
                android:required="false" />
            <uses-feature
                android:name="android.hardware.camera.autofocus"
                android:required="false" />
            <uses-feature
                android:name="android.hardware.camera.flash"
                android:required="false" />
            <uses-permission android:name="android.permission.READ_CONTACTS"
                />

            <application
                android:name="com.raphapp.tulyu.app.AppController"
                android:allowBackup="true"
                android:icon="@mipmap/ic_launcher"
                android:label="@string/app_name"
                android:largeHeap="true"
                android:screenOrientation="portrait"
                android:supportsRtl="true"
                android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen" >
                <activity
                    android:name="com.raphapp.tulyu.activity.Activity_SplashScreen"
                    android:screenOrientation="portrait" >
                    <intent-filter>
                        <action android:name="android.intent.action.MAIN" />

                        <category android:name="android.intent.category.LAUNCHER" />
                    </intent-filter>
                </activity>


                <activity
                    android:name="com.raphapp.tulyu.activity.Activity_SignUp"
                    android:configChanges="orientation|screenLayout|screenSize|keyboardHidden"
                    android:screenOrientation="portrait"
                    android:windowSoftInputMode="adjustPan" >
                </activity>
                <activity
                    android:name="com.raphapp.tulyu.activity.Activity_Loading"
                    android:configChanges="orientation|screenLayout|screenSize|keyboardHidden"
                    android:screenOrientation="portrait"
                    android:windowSoftInputMode="adjustPan" >
                </activity>
                <activity
                    android:name="com.raphapp.tulyu.activity.Activity_SignIn"
                    android:screenOrientation="portrait" >
                </activity>
                <activity
                    android:name="com.raphapp.tulyu.activity.Activity_FirstScreen"
                    android:screenOrientation="portrait" >
                </activity>
                <activity
                    android:name="com.raphapp.tulyu.fragments.Fragment_Activity"
                    android:screenOrientation="portrait" >
                </activity>
                <activity
                    android:name="com.raphapp.tulyu.activity.Activity_ContactDetails"
                    android:screenOrientation="portrait" />
                <activity
                    android:name="com.raphapp.tulyu.activity.Tos"
                    android:screenOrientation="portrait" />
                <activity
                    android:name="com.yalantis.ucrop.UCropActivity"
                    android:configChanges="orientation"
                    android:label="@string/app_name"
                    android:screenOrientation="portrait" />

                <service android:name="com.parse.PushService" />

                <receiver
                    android:name="com.raphapp.tulyu.receiver.CustomPushReceiver"
                    android:exported="false" >
                    <intent-filter>
                        <action android:name="android.intent.action.BOOT_COMPLETED" />
                        <action android:name="android.intent.action.USER_PRESENT" />
                        <action android:name="com.parse.push.intent.RECEIVE" />
                        <action android:name="com.parse.push.intent.DELETE" />
                        <action android:name="com.parse.push.intent.OPEN" />
                    </intent-filter>
                </receiver>
                <receiver
                    android:name="com.parse.GcmBroadcastReceiver"
                    android:permission="com.google.android.c2dm.permission.SEND" >
                    <intent-filter>
                        <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                        <action android:name="com.google.android.c2dm.intent.REGISTRATION" />

                        <!-- IMPORTANT: Change "com.parse.starter" to match your app's package name. -->
                        <category android:name="com.raphapp.tulyu" />
                    </intent-filter>
                </receiver>

                <meta-data
                    android:name="io.fabric.ApiKey"
                    android:value="xxxxxx" />

                <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>


                <!-- Optionally, register AnalyticsReceiver and AnalyticsService to support background
              dispatching on non-Google Play devices -->
                <receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver"
                    android:enabled="true">
                    <intent-filter>
                        <action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
                    </intent-filter>
                </receiver>
                <service android:name="com.google.android.gms.analytics.AnalyticsService"
                    android:enabled="true"
                    android:exported="false"/>

                <!-- Optionally, register CampaignTrackingReceiver and CampaignTrackingService to enable
                     installation campaign reporting -->
                <receiver android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
                    android:exported="true">
                    <intent-filter>
                        <action android:name="com.android.vending.INSTALL_REFERRER" />
                    </intent-filter>
                </receiver>
                <service android:name="com.google.android.gms.analytics.CampaignTrackingService" />


            </application>

        </manifest>

这是我的build.gradle文件:

    buildscript 
    {
        repositories {
            maven { url 'https://maven.fabric.io/public' }
        }
        dependencies {
            classpath 'io.fabric.tools:gradle:1.+'
        }
    }
    apply plugin: 'com.android.application'
    apply plugin: 'io.fabric'
    apply plugin: 'com.google.gms.google-services'
    repositories 
    {
        maven 
    { url 'https://maven.fabric.io/public' }
        mavenCentral()
    }
    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.2"
        defaultConfig {
            applicationId "com.raphapp.tulyu"
            minSdkVersion 19
            targetSdkVersion 23
            versionCode 2
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    dependencies
     {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        testCompile 'junit:junit:4.12'
        compile 'com.google.android.gms:play-services-analytics:9.0.0'
        compile 'com.android.support:appcompat-v7:23.2.0'
        compile 'com.yalantis:ucrop:1.2.+'
        compile 'com.android.support:multidex:1.0.1'
        compile fileTree(include: 'Parse-*.jar', dir: 'libs')
        compile 'com.parse.bolts:bolts-android:1.+'
        compile 'com.github.bumptech.glide:glide:3.6.1'
        compile 'com.anjlab.android.iab.v3:library:1.0.+'
        compile 'com.baoyz.swipemenulistview:library:1.3.0'
        compile('com.crashlytics.sdk.android:crashlytics:2.5.6@aar') {
            transitive = true;
        }
        compile 'com.facebook.android:facebook-android-sdk:4.+'
    }

是的,我是这个意思。@KenWolf - Muhammad Khurram Mushtaq
请在此处添加您的build.gradle文件内容 - Calvin
编辑你的问题,并添加 build.gradle 文件的代码。 - Muhammad Umair
@MuhammadUmair问题已更新。 - Muhammad Khurram Mushtaq
@ChKhurram,你解决了这个问题吗? - Ganesh AB
显示剩余7条评论
2个回答

1

使用 uses-feature 似乎是区分大小写的。

在您的清单文件中编写了两个特性:

第一个没有问题,您想要使用相机,但不是必需的。

问题在于第二个需要一个 android.hardware.CAMERA,而这在任何 Android 设备中都不存在。它们有相机,而不是 CAMERA。

希望这可以帮助您。 希望您接受这个答案 ;)


记录易于高评级。我会给你评分,你的等级也会变高。 - Zaeem Sattar

0

uses-feature 是区分大小写的。

使用

        android:name="android.hardware.CAMERA"

而不是

        android:name="android.hardware.camera"

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接