Android Studio 在上载之前从清单中删除冲突

qij5mzcb  于 12个月前  发布在  Android
关注(0)|答案(2)|浏览(397)

我得到这个错误,而上传应用程序在谷歌Play商店进行测试

“在上传前从清单中删除冲突。其他开发人员正在使用以下内容提供商权限:myApp.crashlyticsinitprovider、myApp.firebaseinitprovider、myApp. lifescle-trojan."

下面是我的build.gradle(App):

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

def sdkVersion = 33,
    toolsVersion = sdkVersion.toString(),
    minimumSdkSupported = 14,
    internalVersionNumber = 15,
    externalVersionNumber = "1.2.7"

android {
    compileSdkVersion sdkVersion
    buildToolsVersion toolsVersion
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "myAPP"
        archivesBaseName = "myAPP"
        dimension "my"
        minSdkVersion minimumSdkSupported
        targetSdkVersion sdkVersion
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        versionCode internalVersionNumber
        versionName externalVersionNumber
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
        debug {
            debuggable true
        }
    }
    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }
}

def dependencyVersions = [
        // production
        supportLibrary      : "$sdkVersion.0.0",
        jackson             : "2.5.3",
        constraintLayout    : "1.1.3",
        coroutines          : '1.1.1',
        androidArchLifecycle: "1.1.1",
        firebaseCore        : "16.0.7",
        firebaseMessaging   : "17.4.0",
        crashlytics         : "2.9.9",
        dagger              : "2.13",
        // testing
        mockk               : "1.9",
        jUnit               : "1.1.0",
        testRunner          : "1.1.1",
        espresso            : "3.1.1"
]

dependencies {
    implementation 'com.android.support:support-v4:21.+'
    implementation "com.fasterxml.jackson.core:jackson-databind:$dependencyVersions.jackson"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$dependencyVersions.coroutines"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$dependencyVersions.coroutines"
    implementation "com.android.support.constraint:constraint-layout:$dependencyVersions.constraintLayout"
    implementation "com.google.dagger:dagger:$dependencyVersions.dagger"
    kapt "com.google.dagger:dagger-compiler:$dependencyVersions.dagger"
    implementation "android.arch.lifecycle:extensions:$dependencyVersions.androidArchLifecycle"
    kapt "android.arch.lifecycle:compiler:$dependencyVersions.androidArchLifecycle"
    implementation "com.google.firebase:firebase-core:$dependencyVersions.firebaseCore"
    implementation "com.google.firebase:firebase-messaging:$dependencyVersions.firebaseMessaging"
    implementation "com.crashlytics.sdk.android:crashlytics:$dependencyVersions.crashlytics"
    testImplementation "io.mockk:mockk-common:$dependencyVersions.mockk"
    testImplementation "io.mockk:mockk:$dependencyVersions.mockk"
    testImplementation "androidx.test.ext:junit:$dependencyVersions.jUnit"
    testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$dependencyVersions.coroutines"
    androidTestImplementation "androidx.test.espresso:espresso-core:$dependencyVersions.espresso"
    androidTestImplementation "androidx.test.espresso:espresso-intents:$dependencyVersions.espresso"
    androidTestImplementation "androidx.test.espresso:espresso-contrib:$dependencyVersions.espresso"
    androidTestImplementation "androidx.test.ext:junit:$dependencyVersions.jUnit"
    androidTestImplementation "androidx.test:runner:$dependencyVersions.testRunner"
    androidTestImplementation "androidx.test:rules:$dependencyVersions.testRunner"

    implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
}

apply from: '../quality/ktlint.gradle'

apply plugin: 'com.google.gms.google-services'

下面是我的Manifest文件:

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

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

    <application
        android:name=".MyApplication"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/MyTheme">

        <uses-library
            android:name="org.apache.http.legacy"
            android:required="false" />

        <meta-data
            android:name="com.google.firebase.messaging.default_notification_icon"
            android:resource="@drawable/ic_stat_ic_notification" />
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_color"
            android:resource="@color/rijksoverheid_blue" />

        <activity
            android:name=".controller.MainViewController"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:label="@string/app_name"
            android:noHistory="true"
            android:screenOrientation="portrait"
            android:theme="@android:style/Theme.NoTitleBar"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".controller.LoginViewController"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:label=""
            android:screenOrientation="portrait" />

        <activity
            android:name=".controller.RegisterViewController"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:label=""
            android:screenOrientation="portrait" />

        <activity
            android:name=".controller.RegisterInfoViewController"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:label=""
            android:screenOrientation="portrait" />

        <activity
            android:name=".controller.RequestsViewController"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:label="IDT Aanvragen"
            android:screenOrientation="portrait" />

        <activity
            android:name=".controller.SubmitRequestViewController"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:label="Nieuwe aanvraag"
            android:parentActivityName=".controller.RequestsViewController"
            android:screenOrientation="portrait">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".controller.RequestsViewController" />
        </activity>

        <activity
            android:name=".controller.DialogActivity"
            android:screenOrientation="portrait"
            android:theme="@style/NoTitleDialog" />

        <service android:name=".features.notification.IDTFirebaseMessagingService"
            android:exported="true">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>
    </application>

</manifest>
xzv2uavs

xzv2uavs1#

我认为你应该按照惯例改变你的包名。您可以查看完整答案here
它应该像这样:

*com.yourdomain.app

我相信这个词会被Playstore拒绝。我知道这个错误看起来很奇怪,但我只是遇到了同样的问题,并通过更改软件包名称解决了它,因为旧软件包已经在Playstore上了。

gupuwyp2

gupuwyp22#

伙计们,

  • 这个问题是Play Store政策的主要问题。但解决办法很简单。
    *您正在尝试使用相同的软件包名称将您的应用上传到Play商店。请👉更改您的软件包名称,然后重试。👈
  • 如果您的应用程序在另一个游戏控制台中处于草稿状态,也会生成案例。😤

Connect with me

相关问题