我从stackoverflow中搜索并尝试了很多解决方案,
但我想有另一种问题。
我在我的应用程序中使用了分支io和sugar orm。
我需要接收和读取短信来实现两步认证,并获得一些与地图相关的活动。
刚刚将我的应用程序上载到Play Store,我得到:支持的设备0。应用程序已激活,以下是我的清单:

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

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="26" />

<uses-permission android:name="android.permission.INTERNET" android:required="true" />
<uses-permission android:name="android.permission.ACCESS_GPS" android:required="true" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:required="true" />
<uses-permission android:name="android.permisssion.ACCESS_COARSE_LOCATION" android:required="true" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" android:required="true" />
<uses-permission android:name="android.permission.RECEIVE_SMS" android:required="false" />
<uses-permission android:name="android.permission.READ_SMS" android:required="false" />

<meta-data android:name="DATABASE" android:value="clm.db" />
<meta-data android:name="VERSION" android:value="1" />
<meta-data android:name="QUERY_LOG" android:value="true" />
<meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="com.selise.clm.common.database.entity" />

<application
    android:name=".common.App"
    android:allowBackup="false"
    android:fullBackupContent="@xml/my_backup_rules"
    android:fullBackupOnly="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:hardwareAccelerated="true"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".common.ui.activity.SplashScreenActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <data android:scheme="clmdebug" android:host="open" />
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
        </intent-filter>
    </activity>
    <activity
        android:name=".login.ui.activity.LoginActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar">

        <!-- Branch URI scheme -->
        <intent-filter>
            <data
                android:host="open"
                android:scheme="clm" />

            <action android:name="android.intent.action.VIEW" />

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

    <meta-data android:name="io.branch.sdk.BranchKey" android:value="key_live_jjuGmW0h4nBkf309aOCBbpikstjXj60T" />
    <meta-data android:name="io.branch.sdk.BranchKey.test" android:value="key_live_eetMk3Wl9w5Jo7kd3s3rPifnrzlZ8fp0" />

    <activity
        android:name=".login.ui.activity.RegistrationActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".shipment.ui.activity.ShipmentListActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".notification.ui.activity.NotificationListActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".notification.ui.activity.NotificationDetailsActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".shipment.ui.activity.AddShipmentActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".shipment.ui.activity.ShipmentDetailsActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />

    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/google_maps_key" />

    <service
        android:name=".shipmentMap.service.GeofenceTransitionsIntentService"
        android:enabled="true" />
    <service android:name=".common.service.AccessTokenWithRefreshTokenService" />
    <service android:name=".common.service.LoadLastNotificationService" />
    <service
        android:name=".notification.service.NotificationSignalRService"
        android:enabled="true" />
    <service android:name=".shipmentMap.currentLocation.service.SendCurrentLocationService" />

    <activity
        android:name=".shipmentMap.ui.activity.MapsActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar" />

    <receiver android:name=".common.receiver.NotificationReceiver">
        <intent-filter>
            <action android:name="com.selise.clm.SHIPMENT_CHANGED_ROUTE" />
            <action android:name="com.selise.clm.SHIPMENT_FORWARD" />
            <action android:name="com.selise.clm.SHIPMENT_COMPLETE" />
            <action android:name="com.selise.clm.SHIPMENT_CANCELLED" />
            <action android:name="com.selise.clm.NOTIFICATION_SERVER_CONNECTED" />
            <action android:name="com.selise.clm.NOTIFICATION_SERVER_DISCONNECTED" />
        </intent-filter>
    </receiver>

    <receiver android:name=".common.receiver.AccessTokenAlarmReceiver" android:exported="true"/>

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

    <!-- Branch init -->
    <meta-data
        android:name="io.branch.sdk.BranchKey"
        android:value="key_live_jjuGmW0h4nBkf309aOCBbpikstjXj60T" />
    <meta-data android:name="io.branch.sdk.BranchKey.test" android:value="key_live_eetMk3Wl9w5Jo7kd3s3rPifnrzlZ8fp0" />
    <!-- Branch testing (TestMode "true" to simulate fresh installs on dev environment) -->
    <meta-data android:name="io.branch.sdk.TestMode" android:value="false" />

    <receiver
        android:name="io.branch.referral.InstallListener"
        android:exported="true">
        <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>
    </receiver>
    <receiver android:name=".login.receiver.SmsReceiver">
        <intent-filter>
            <action android:name="android.provider.Telephony.SMS_RECEIVED" />
        </intent-filter>
    </receiver>

    <activity android:name=".login.ui.activity.EnterSecurityCodeActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar"></activity>
</application>

最佳答案

请尝试修复此处的拼写错误:

<uses-permission android:name="android.permisssion.ACCESS_COARSE_LOCATION" android:required="true" />

你有一个权限(3s,应该是permission,而不是permisssion)。

09-13 01:34