【问题标题】:No device supported for my app on Google Play Developer Console我的应用在 Google Play 开发者控制台上不支持任何设备
【发布时间】:2016-10-30 13:37:01
【问题描述】:

Google Play 商店坚持认为我的应用受 0 台设备支持,我遇到了问题。 我已经在不同的设备上测试了我的应用程序,它运行良好,没有理由让它与每个Android 设备不兼容。 提前致谢 这是我的manifest 文件:

<?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="com.company.nameapp">

        <!-- PERMISSION TO USE CAMERA -->
        <uses-permission android:name="android.permission.CAMERA" />
      <uses-feature android:name="android.hardware.camera2" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

        <!-- ACTIVITY -->
        <application
            android:allowBackup="true"
            android:icon="@drawable/icon_flash"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme"
            tools:replace="android:theme">

            <!-- SPLASH SCREEN -->


            <activity
                android:name=".SplashScreen"
                android:label="@string/app_name"
                android:theme="@android:style/Theme.Black.NoTitleBar" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

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



            <!-- MAIN ACTIVITY-->
            <activity android:name=".MainActivity"
                android:screenOrientation="portrait"
                android:theme="@android:style/Theme.Black.NoTitleBar">

                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

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

            <!-- CAMERA -->

            <activity android:name="com.desmond.squarecamera.CameraActivity" />

            <activity android:name=".credits"
                android:screenOrientation="portrait"
                android:theme="@android:style/Theme.Black.NoTitleBar">
            </activity>

        </application>
    </manifest>

这四个特点

android.hardware.CAMERA
android.hardware.CAMERA2
android.hardware.FAKETOUCH
android.hardware.PORTRAIT

还有 3 个权限

android.permission.CAMERA
android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE

Google Play Resume

【问题讨论】:

    标签: android android-manifest google-developers-console


    【解决方案1】:

    看着https://github.com/googlesamples/android-Camera2Basic/blob/master/Application/src/main/AndroidManifest.xml 我很确定&lt;uses-feature android:name="android.hardware.camera2" /&gt; 不是真的东西。尝试将其更改为 &lt;uses-feature android:name="android.hardware.camera" /&gt; 或将其删除。

    【讨论】:

    • 完美。有用!我真的很感谢你的帮助!!!非常感谢!
    • 我讨厌这样说,但是:如果有帮助,请投票或接受。 ;)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-13
    • 2013-05-05
    • 2017-11-03
    • 1970-01-01
    相关资源
    最近更新 更多