发布到Play商店后,我的应用程序显示“您的设备与此版本不兼容”

时间:2019-01-26 10:40:11

标签: java android xml google-play

我的应用程序已在Play商店中上线,但Play商店显示错误“您的设备与此版本不兼容”。在所有设备上正常工作之前,该应用实际上已经在Play商店中了,但是我未发布,因为在构建符号apk时忘记了密码,因此我已取消发布该应用,然后重新发布了具有不同程序包名称和某些更改的同一应用。现在它与任何设备均不兼容。请告诉我问题出在哪里

我已经看到很多与此相关的评论,但是没有一条是有效的。

并显示文件:

func test()  {
    cat1 := Cat{
        Name: "Cat1",
    }

    cat2 := Cat{
        Name: "Cat2",
    }

    cat3 := Cat{
        Name: "Cat3",
    }

    arrayCats := []Cat{cat1, cat2, cat3}
    speak(cat1)
    speak(cat3)
    speak(cat2)
    speaks(arrayCats) //This line gives an error to the Compiler
}

enter code here<?xml version="1.0" encoding="utf-8"?>

Build.gradle

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

<application
    android:name=".networklayer.AnalyticsApplication"
    android:allowBackup="true"
    android:icon="@drawable/app_logo"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".activities.SplashScreen"
        android:screenOrientation="sensorPortrait"
        android:theme="@style/AppTheme.NoActionBar"
        android:windowSoftInputMode="stateHidden|stateAlwaysHidden|adjustResize|adjustNothing">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".activities.LoginActivity"
        android:label="@string/app_name"
        android:screenOrientation="sensorPortrait"
        android:theme="@style/AppTheme.NoActionBar"
        android:windowSoftInputMode="stateVisible|adjustResize" />

    <activity
        android:name=".activities.DashboardActivity"
        android:screenOrientation="sensorPortrait"
        android:theme="@style/AppTheme.NoActionBar"
        android:windowSoftInputMode="stateHidden|stateAlwaysHidden|adjustResize|adjustNothing" />
    <activity
        android:name=".activities.MyAccountActivity"
        android:screenOrientation="sensorPortrait"
        android:windowSoftInputMode="stateVisible|adjustResize" />


    <activity
        android:name=".activities.MessagesActivity"
        android:screenOrientation="sensorPortrait"
        android:windowSoftInputMode="stateHidden|stateAlwaysHidden|adjustResize|adjustNothing" />
    <activity
        android:name="com.soundcloud.android.crop.CropImageActivity"
        android:screenOrientation="sensorPortrait"
        android:windowSoftInputMode="stateHidden|stateAlwaysHidden|adjustResize|adjustNothing" />

    <activity
        android:name=".activities.UserProfileActivity"
        android:screenOrientation="sensorPortrait"
        android:windowSoftInputMode="stateHidden|stateAlwaysHidden|adjustResize|adjustNothing" />


    <service android:name=".firebase.MyFirebaseMessagingService">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>
    <service
        android:name=".firebase.MyJobService"
        android:exported="false">
        <intent-filter>
            <action android:name="com.firebase.jobdispatcher.ACTION_EXECUTE" />
        </intent-filter>
    </service>
    <meta-data
        android:name="com.google.firebase.messaging.default_notification_channel_id"
        android:value="@string/default_notification_channel_id" />

    <service android:name=".firebase.FirebaseIDService"
        android:exported="true">
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>

    <receiver android:name=".firebase.NetworkChangeReceiver">
        <intent-filter>
            <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
        </intent-filter>
    </receiver>
    <activity
        android:name="com.google.android.gms.common.api.GoogleApiActivity"
        android:exported="false"
        android:theme="@android:style/Theme.Translucent.NoTitleBar" />

    <receiver
        android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
        android:enabled="true"
        android:exported="false" />
    <receiver
        android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
        android:enabled="true"
        android:permission="android.permission.INSTALL_PACKAGES">
        <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>
    </receiver>

    <service
        android:name="com.google.android.gms.measurement.AppMeasurementService"
        android:enabled="true"
        android:exported="false" />
    <service
        android:name="com.google.firebase.messaging.FirebaseMessagingService"
        android:exported="true">
        <intent-filter android:priority="-500">
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>

    <receiver
        android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
        android:exported="true"
        android:permission="com.google.android.c2dm.permission.SEND">
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <category android:name="com.almpg.android" />
        </intent-filter>
    </receiver>


    <service
        android:name="com.google.firebase.iid.FirebaseInstanceIdService"
        android:exported="true">
        <intent-filter android:priority="-500">
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>
    <!--<provider-->
        <!--android:name="com.google.firebase.provider.FirebaseInitProvider"-->
        <!--android:authorities="com.almpg.android.firebaseinitprovider"-->
        <!--android:exported="false"-->
        <!--android:initOrder="100" />-->

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />




</application>

1 个答案:

答案 0 :(得分:0)

好了,我得到了解决方案。问题出在我的依赖项“实现'org.apache.directory.studio:org.apache.commons.lang:2.6'”中,这是一个jar文件。不兼容任何设备。因此,我删除了上述依赖关系,我的应用现在可以在所有设备上正常工作。