首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >当应用程序在Play Store上线时,0设备支持Android应用程序

当应用程序在Play Store上线时,0设备支持Android应用程序
EN

Stack Overflow用户
提问于 2019-08-21 14:29:23
回答 3查看 84关注 0票数 5

我在Play Store上启动了我的应用程序,当我检查我的实时应用程序时,它与所有android设备都不兼容。我检查了Play Store控制台。它向我显示了0个支持的设备。我不知道为什么我的应用程序不支持任何设备。

Manifest.xml:

代码语言:javascript
运行
复制
    <?xml version="1.0" encoding="utf-8"?>
     <manifest 
       xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="zkm.com.zkm">

<uses-permission android:name="android.permission.INTERNET">

</uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.permission.CAMERA" />
<uses-feature
    android:name="android.hardware.camera"
    android:required="true" />

<application
    android:name="zkm.com.zkm.Utils.AppController"
    android:allowBackup="true"
    android:hardwareAccelerated="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    android:usesCleartextTraffic="true"
    tools:ignore="GoogleAppIndexingWarning">
    <activity
        android:name="zkm.com.zkm.Activity.Splash"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="zkm.com.zkm.Activity.WelcomeActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />
    <activity
        android:name="zkm.com.zkm.Activity.CarerSeekerActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan|stateAlwaysHidden"

        />
    <activity
        android:name="zkm.com.zkm.Activity.SeekerAdditionalDetailActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />
    <activity
        android:name="zkm.com.zkm.Activity.CareSeekerRegistrationActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />
    <activity
        android:name="zkm.com.zkm.Activity.LoginActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />
    <activity
        android:name="zkm.com.zkm.Activity.HelpActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />
    <activity
        android:name="zkm.com.zkm.Activity.CareProviderHelpActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />
    <activity
        android:name="zkm.com.zkm.Activity.CareProviderActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan|stateAlwaysHidden" />
    <activity
        android:name="zkm.com.zkm.Activity.ForgotPasswordActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />

    <activity
        android:name="zkm.com.zkm.Activity.ConfirmPasswordActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="stateAlwaysHidden" />

    <activity
        android:name="zkm.com.zkm.Activity.SearchCareProfileSeekerActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan|stateAlwaysHidden" />


    <activity
        android:name="zkm.com.zkm.Activity.SearchPackageCareProviderActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan|stateAlwaysHidden" />

    <!-- Firebase Notifications -->
    <service
        android:name="zkm.com.zkm.Notification.MyFirebaseMessagingService"
        android:exported="true"
        android:stopWithTask="false">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>

    <service android:name="zkm.com.zkm.Notification.MyFirebaseInstanceIDService">
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>


    <!-- ./Firebase Notifications -->


    <provider
        android:name="android.support.v4.content.FileProvider"
        android:authorities="zkm.com.zkm.fileprovider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/file_paths"></meta-data>
    </provider>


</application>

App的Gradle:

代码语言:javascript
运行
复制
      apply plugin: 'com.android.application'

    android {
      compileSdkVersion 28
      defaultConfig {
         applicationId "zkm.com.zkm"
         minSdkVersion 19
         targetSdkVersion 28
         versionCode 2
         versionName "1.0.1"
         testInstrumentationRunner 
         "android.support.test.runner.AndroidJUnitRunner"

     }
    buildTypes {
        release {
           minifyEnabled false
           proguardFiles getDefaultProguardFile('proguard- 
           android.txt'), 'proguard-rules.pro'
       }
  }

lintOptions {
      checkReleaseBuilds false
       // Or, if you prefer, you can continue to check for 
    errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
  }
 }

dependencies {

  implementation fileTree(dir: 'libs', include: ['*.jar'])
  implementation 'com.android.support:appcompat-v7:28.0.0'
  implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  implementation 'com.android.support:design:28.0.0'
  implementation 'com.android.support:support-v4:28.0.0'
  implementation 'com.android.support:support-vector-drawable:28.0.0'

implementation 'com.crystal:crystalrangeseekbar:1.1.3'
implementation 'com.ramotion.foldingcell:folding-cell:1.2.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.github.emanzanoaxa:RippleEffect:52ea2a0ab6'


testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.android.volley:volley:1.1.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.stripe:stripe-android:8.7.0'
implementation 'com.hbb20:ccp:2.2.0'

repositories {

    maven {
        url "https://jitpack.io"
         }
       }
  }
  apply plugin: 'com.google.gms.google-services'

请检查我的货单,让我知道我做错了什么。

EN

回答 3

Stack Overflow用户

发布于 2019-08-21 14:39:10

似乎没有什么特别的错误,但我怀疑这一行:

代码语言:javascript
运行
复制
<uses-feature android:name="android.permission.CAMERA" />

因为我认为它应该是:

代码语言:javascript
运行
复制
<uses-permission android:name="android.permission.CAMERA" />

而且你已经包含在你的Android清单文件中了,所以只要删除这条怀疑的线,看看会发生什么!

票数 4
EN

Stack Overflow用户

发布于 2019-08-21 14:44:59

正如我在评论中提到的,您的文件中似乎没有任何错误。您可以通过google developer的帐户提出查询,询问具体原因,为什么会看到该错误消息。

我也建议你在发布应用程序之前通过playstore中填写的所有详细信息。

此外,如果您可以发布google开发人员发布控制台的屏幕截图,这将是很有帮助的

票数 0
EN

Stack Overflow用户

发布于 2019-08-21 14:48:44

您必须为false。因为并不是所有的设备都提供摄像头硬件。

代码语言:javascript
运行
复制
<uses-feature
android:name="android.hardware.camera"android:required="false"/>
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57585638

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档