title: Can's set debug/AndroidManifest.xml
body: <p>Android Studio 3.4</p>
  
  <p>Here my android app structure:</p>
  
  <p><a href="https://i.stack.imgur.com/6WNRv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6WNRv.png" alt="enter image description here"></a></p>
  
  <p>I has 2 <strong>buildTypes</strong>:</p>
  
  <pre><code>debug
  </code></pre>
  
  <p>and</p>
  
  <pre><code>release
  </code></pre>
  
  <p>Here my <code>src/debug/AndroidManifest.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.myapp"&gt;
  
  
      &lt;application&gt;
          &lt;activity
              android:name="com.myapp.activity.CheckoutPaynetActivity_"
              android:screenOrientation="portrait"&gt;&lt;/activity&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>This manifest file contain only delta. It's one additional activity. It's different between <code>release</code> and <code>debug</code> 
  version</p>
  
  <p>In my app/buiil.gradle I change <code>sourceSets</code> for AndroidManifest:</p>
  
  <pre><code>  buildTypes {
          release {
  
          }
          debug {
  
              sourceSets {
                   debug {
                       manifest.srcFile 'debug/AndroidManifest.xml'
                  }
              }
              configBuildType(delegate, DEBUG_INSTANCE_NAME, DEBUG_APP_NAME, null, DEBUG_APPLICATION_PROFILE_URL)
              ext.betaDistributionReleaseNotes = defaultConfig.versionName + " " + name
          }
      }
  </code></pre>
  
  <p>But when I build project by <code>gradlew assembleDebug</code> the <strong>AndroidManifest</strong> not contain additional activity = <code>CheckoutPaynetActivity_</code></p>
  
  <p>I check apk by <code>Android Studio -&gt;Build -&gt; Analize APK...</code></p>
  
  <pre><code>def configBuildType(buildType, instanceName, appName, appIdSuffix, appProfileURL) {    
      buildType.resValue("string", "app_name", appName)
      buildType.applicationIdSuffix(appIdSuffix)
      buildType.buildConfigField("String", "INSTANCE_NAME", instanceName)
      buildType.buildConfigField("String", "APPLICATION_PROFILE_URL", appProfileURL)
  }
  </code></pre>