title: Google Play upload problem: "Your Android App Bundle needs to have the package name com.x.x.base"
body: <p>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.</p>
  
  <p>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." </p>
  
  <p>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. </p>
  
  <p>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</p>
  
  <pre><code>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 {
      ...
  }
  </code></pre>
  
  <p>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.</p>
  
  <p>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.)</p>