Google Play上传问题:“您的Android应用程序捆绑包必须具有包名称com.x.x.base" [英] Google Play upload problem: "Your Android App Bundle needs to have the package name com.x.x.base"

查看:547
本文介绍了Google Play上传问题:“您的Android应用程序捆绑包必须具有包名称com.x.x.base"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将正在开发的应用程序上传到内部测试轨道Google Play控制台.该应用程序具有两个风味维度和两个动态功能,后两个仅是资源(无代码).我依靠Android Studio生成目录结构和签名的包.

I am trying to upload an application under development to Google Play Console, internal testing track. The application has two flavor dimensions and and two dynamic features, the last two being resources only (no code). I am relying on Android Studio to generate the directory structure and the signed bundle.

程序包的名称为com.something.something.上载失败,并显示消息您的APK或Android应用捆绑包需要使用软件包名称com.something.something.base".

The name of the package is com.something.something. The upload fails with the message "Your APK or Android App Bundle needs to have the package name com.something.something.base."

尽管看起来应该与风味尺寸有关,但我无法找到问题的根源.另一方面,如果没有动态功能,我可以轻松上传单个apk.

I cannot track down the source of the problem, though it looks like it should have something to do with the flavor dimensions. On the other hand, I had no problem uploading a single apk, without the dynamic features.

我不确定代码的哪一部分在这里相关,这可能是我的问题的一部分,但是我的主要构建包看起来像这样

I am not sure which part of the code is relevant here, which is probably part of my problem, but my main build gradle looks like this

apply plugin: 'com.android.application'

android {

    compileSdkVersion 27
    defaultConfig {
        applicationId 'com.something.something'
        ....
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            //testCoverageEnabled false
        }
    }

    flavorDimensions "version"
    productFlavors {
        small {
            dimension "version"
        }
        full {
            dimension "version"
        }
    }

    dynamicFeatures = [":feat1", ":feat2"]

}

dependencies {
    ...
}

我不想用不相关的代码来负担这个问题,但是如果对问题可能在哪里有一些直觉的话,我可以提供更多的信息.

I do not want to burden the question with irrelevant code, but can provide more if there is some intuition about where the problem might be.

对于在此进行调试的任何建议,我将不胜感激. (上载非常缓慢,尝试和错误不是很多选择.)

I would be grateful for any suggestion on how to approach the debugging here. (Uploading is painfully slow, trial and error is not much of an option.)

推荐答案

由于您的问题与代码无关,请尝试将软件包名称更改为其他名称,使之更独特". com.myname.myappname是一个示例.在这种情况下,您需要更改与软件包名称相关的所有内容.尝试并向后举报

Since your problem is not related to codes, try changing your package name to something else, something more "unique". com.myname.myappname is an example. In this case you need to change everything related to your package name. Try it and report back

这篇关于Google Play上传问题:“您的Android应用程序捆绑包必须具有包名称com.x.x.base"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆