title: Getting "The AndroidManifest.xml of the uploaded APK could not be parsed. Was it compiled properly?" error after enabling Google App Signing
body: <p>After enabling <a href="https://support.google.com/googleplay/android-developer/answer/7384423?hl=en" rel="nofollow noreferrer">Google App Signing</a>, everytime I try to upload a signed release APK to Play Store I get an error saying <strong>The AndroidManifest.xml of the uploaded APK could not be parsed. Was it compiled properly?</strong>.</p>
  
  <p>Here is the <em>Android Manifest</em> file got from the signed APK with the <strong>APK Analyzer</strong> tool </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:versionCode="227"
      android:versionName="4.9"
      package="com.myproject"&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="15"
          android:targetSdkVersion="25" /&gt;
  
      &lt;uses-permission
          android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.INTERNET" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.WAKE_LOCK" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.VIBRATE" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.MANAGE_USERS" /&gt;
  
      &lt;uses-permission
          android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
  
      &lt;uses-permission
          android:name="com.android.vending.BILLING" /&gt;
  
      &lt;permission
          android:name="com.myproject.permission.C2D_MESSAGE"
          android:protectionLevel="0x2" /&gt;
  
      &lt;uses-permission
          android:name="com.myproject.permission.C2D_MESSAGE" /&gt;
  
      &lt;application
          android:theme="@ref/0x7f10013f"
          android:label="@ref/0x7f0f004f"
          android:icon="@ref/0x7f08005a"
          android:name="br.com.regmoraes.myproject.CustomApp"
          android:allowBackup="true"
          android:largeHeap="true"
          android:supportsRtl="true"&gt;
  
          &lt;meta-data
              android:name="search-engine"
              android:resource="@ref/0x7f120001" /&gt;
  
          &lt;meta-data
              android:name="com.google.android.gms.version"
              android:value="@ref/0x7f0a0006" /&gt;
  
          &lt;meta-data
              android:name="com.mixpanel.android.MPConfig.ResourcePackageName"
              android:value="br.com.regmoraes.myproject" /&gt;
  
          &lt;meta-data
              android:name="AA_MODELS"
              android:value="br.com.regmoraes.myproject.domain.entity.App,
              br.com.regmoraes.myproject.conteudo.commons.entity.Content,
              br.com.regmoraes.myproject.conteudo.commons.entity.Category,
              br.com.regmoraes.myproject.domain.entity.User,
              br.com.regmoraes.myproject.domain.entity.Parameter"/&gt;
  
          &lt;meta-data
              android:name="com.mixpanel.android.MPConfig.AutoShowMixpanelUpdates"
              android:value="true" /&gt;
  
          &lt;meta-data
              android:name="com.mixpanel.android.MPConfig.EnableDebugLogging"
              android:value="true" /&gt;
  
          &lt;meta-data
              android:name="io.fabric.ApiKey"
              android:value="123456" /&gt;
  
          &lt;meta-data
              android:name="io.branch.sdk.TestMode"
              android:value="false" /&gt;
  
          &lt;meta-data
              android:name="io.branch.sdk.BranchKey"
              android:value="123456" /&gt;
  
          &lt;service
              android:name="br.com.regmoraes.myproject.push.firebase.MessagingService"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
          &lt;service
              android:name="br.com.regmoraes.myproject.push.firebase.InstanceIdService"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.google.firebase.INSTANCE_ID_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
          &lt;service
              android:name="br.com.regmoraes.myproject.conteudo.sync.service.SyncService"
              android:exported="false" /&gt;
  
          &lt;receiver
              android:name="com.mixpanel.android.mpmetrics.GCMReceiver"
              android:permission="com.google.android.c2dm.permission.SEND"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
  
                  &lt;action
                      android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  
                  &lt;category
                      android:name="com.myproject" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;receiver
              android:name="com.mixpanel.android.mpmetrics.InstallReferrerReceiver"
              android:exported="true"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.android.vending.INSTALL_REFERRER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;receiver
              android:name="io.branch.referral.InstallListener"
              android:exported="true"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.android.vending.INSTALL_REFERRER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;activity
              android:theme="@ref/0x7f1000a7"
              android:label="@ref/0x7f0f004f"
              android:name="com.facebook.FacebookActivity"
              android:configChanges="0x5b0" /&gt;
  
          &lt;meta-data
              android:name="com.facebook.sdk.ApplicationId"
              android:value="@ref/0x7f0f0000" /&gt;
  
          &lt;provider
              android:name="com.facebook.FacebookContentProvider"
              android:exported="true"
              android:authorities="com.facebook.app.FacebookContentProvider976563775688475" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f100199"
              android:label="@ref/0x7f0f014d"
              android:name="com.zendesk.sdk.support.SupportActivity"
              android:windowSoftInputMode="0x10" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f100199"
              android:label="@ref/0x7f0f00be"
              android:name="com.zendesk.sdk.feedback.ui.ContactZendeskActivity"
              android:windowSoftInputMode="0x14" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f004f"
              android:name="br.com.regmoraes.myproject.sessao.login.basic.presentation.LoginActivity"
              android:screenOrientation="1" /&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f004f"
              android:name="br.com.regmoraes.myproject.ui.activity.BaseActivity"
              android:exported="true"
              android:launchMode="2"&gt;
  
              &lt;intent-filter
                  android:label="@ref/0x7f0f004f"&gt;
  
                  &lt;action
                      android:name="android.intent.action.MAIN" /&gt;
              &lt;/intent-filter&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="android.intent.action.VIEW" /&gt;
  
                  &lt;category
                      android:name="android.intent.category.DEFAULT" /&gt;
  
                  &lt;category
                      android:name="android.intent.category.BROWSABLE" /&gt;
  
                  &lt;data
                      android:scheme="https"
                      android:host="host"
                      android:pathPrefix="/123" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f0162"
              android:name="br.com.regmoraes.myproject.home.presentation.HomeActivity"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f004f"
              android:name="br.com.regmoraes.myproject.conteudo.atualizacao.presentation.AtualizacaoConteudoActivity"
              android:screenOrientation="1" /&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f00fe"
              android:name="br.com.regmoraes.myproject.configuracoes.presentation.ConfiguracoesActivity"
              android:screenOrientation="1" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f004f"
              android:name="br.com.regmoraes.myproject.sessao.manterconectado.presentation.ManterConectadoActivity" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f1000d3"
              android:label="@ref/0x7f0f004f"
              android:name="br.com.regmoraes.myproject.splash.ui.SplashActivity"
              android:screenOrientation="1"&gt;
  
              &lt;intent-filter
                  android:label="My Project"&gt;
  
                  &lt;action
                      android:name="android.intent.action.VIEW" /&gt;
  
                  &lt;category
                      android:name="android.intent.category.DEFAULT" /&gt;
  
                  &lt;category
                      android:name="android.intent.category.BROWSABLE" /&gt;
  
                  &lt;data
                      android:scheme="com.myproject"
                      android:host="open" /&gt;
              &lt;/intent-filter&gt;
  
              &lt;intent-filter
                  android:label="My Project"&gt;
  
                  &lt;action
                      android:name="android.intent.action.VIEW" /&gt;
  
                  &lt;category
                      android:name="android.intent.category.DEFAULT" /&gt;
  
                  &lt;category
                      android:name="android.intent.category.BROWSABLE" /&gt;
  
                  &lt;data
                      android:scheme="http"
                      android:host="www.regmoraes.com.br"
                      android:pathPrefix="/android" /&gt;
              &lt;/intent-filter&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category
                      android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f0161"
              android:name="br.com.regmoraes.myproject.ui.activity.EsqueciSenhaActivity"
              android:parentActivityName="br.com.regmoraes.myproject.sessao.login.basic.presentation.LoginActivity"&gt;
  
              &lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value=".sessao.login.basic.presentation.LoginActivity" /&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:theme="@ref/0x0103000f"
              android:name="com.google.android.gms.ads.AdActivity"
              android:configChanges="0xfb0" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f016a"
              android:name="br.com.regmoraes.myproject.ui.activity.WelcomeActivity"
              android:screenOrientation="1" /&gt;
  
          &lt;activity
              android:name="br.com.regmoraes.myproject.home.presentation.NavigationDrawerActivity" /&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f016a"
              android:name="br.com.regmoraes.myproject.conteudo.commons.TabbedContentActivity"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:name="br.com.regmoraes.myproject.cadastro.ui.CadastroActivity"
              android:screenOrientation="1"
              android:windowSoftInputMode="0x10"
              android:parentActivityName="br.com.regmoraes.myproject.sessao.login.basic.presentation.LoginActivity"&gt;
  
              &lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value=".sessao.login.basic.presentation.LoginActivity" /&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:name="br.com.regmoraes.myproject.cadastro.ui.EditarCadastroActivity"
              android:screenOrientation="1"
              android:windowSoftInputMode="0x10"
              android:parentActivityName="br.com.regmoraes.myproject.sessao.login.basic.presentation.LoginActivity"&gt;
  
              &lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value=".sessao.login.basic.presentation.LoginActivity" /&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f0164"
              android:name="br.com.regmoraes.myproject.conteudo.commons.ContentListActivity"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f0160"
              android:name="br.com.regmoraes.myproject.conteudo.commons.DetailContentActivity"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f0168"
              android:name="br.com.regmoraes.myproject.conteudo.busca.presentation.SearchActivity"
              android:windowSoftInputMode="0x24"
              android:parentActivityName="br.com.regmoraes.myproject.home.presentation.HomeActivity"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="android.intent.action.SEARCH" /&gt;
              &lt;/intent-filter&gt;
  
              &lt;meta-data
                  android:name="android.app.searchable"
                  android:resource="@ref/0x7f120002" /&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f0165"
              android:name="br.com.regmoraes.myproject.conteudo.notas.presentation.NotasActivity"
              android:screenOrientation="1"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f0169"
              android:name="br.com.regmoraes.myproject.ui.activity.UpdateWarningActivity"
              android:launchMode="1"
              android:screenOrientation="1"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:label="@ref/0x7f0f0166"
              android:name="br.com.regmoraes.myproject.ui.activity.PrintDialogActivity"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:name="br.com.regmoraes.myproject.sessao.login.facebook.presentation.LoginFacebookActivity" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:name="br.com.regmoraes.myproject.assinatura.presentation.AssinaturaActivity"
              android:screenOrientation="1"
              android:windowSoftInputMode="0x22" /&gt;
  
          &lt;activity
              android:theme="@ref/0x7f10012f"
              android:name="br.com.regmoraes.myproject.assinatura.presentation.DetalhesAssinaturaActivity"
              android:windowSoftInputMode="0x22"
              android:parentActivityName="br.com.regmoraes.myproject.assinatura.presentation.AssinaturaActivity" /&gt;
  
          &lt;receiver
              android:name="com.zendesk.sdk.power.BatteryStateBroadcastReceiver"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="android.intent.action.BATTERY_LOW" /&gt;
  
                  &lt;action
                      android:name="android.intent.action.BATTERY_OKAY" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f00be"
              android:name="com.zendesk.sdk.requests.ViewRequestActivity"
              android:windowSoftInputMode="0x12" /&gt;
  
          &lt;activity
              android:label="@ref/0x7f0f0131"
              android:name="com.zendesk.sdk.requests.RequestActivity" /&gt;
  
          &lt;activity
              android:name="com.zendesk.sdk.support.ViewArticleActivity"
              android:configChanges="0x480" /&gt;
  
          &lt;receiver
              android:name="com.zendesk.sdk.deeplinking.ZendeskDeepLinkingBroadcastReceiver"
              android:exported="false"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.zendesk.sdk.deeplinking" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;provider
              android:name="com.zendesk.belvedere.BelvedereFileProvider"
              android:exported="false"
              android:authorities="com.myproject.belvedere.attachments"
              android:grantUriPermissions="true"&gt;
  
              &lt;meta-data
                  android:name="android.support.FILE_PROVIDER_PATHS"
                  android:resource="@ref/0x7f120000" /&gt;
          &lt;/provider&gt;
  
          &lt;meta-data
              android:name="android.support.VERSION"
              android:value="25.4.0" /&gt;
  
          &lt;service
              android:name="com.google.firebase.messaging.FirebaseMessagingService"
              android:exported="true"&gt;
  
              &lt;intent-filter
                  android:priority="-500"&gt;
  
                  &lt;action
                      android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
          &lt;activity
              android:theme="@ref/0x01030010"
              android:name="com.google.android.gms.common.api.GoogleApiActivity"
              android:exported="false" /&gt;
  
          &lt;receiver
              android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
              android:enabled="true"
              android:exported="false" /&gt;
  
          &lt;receiver
              android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
              android:permission="android.permission.INSTALL_PACKAGES"
              android:enabled="true"
              android:exported="true"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.android.vending.INSTALL_REFERRER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;service
              android:name="com.google.android.gms.measurement.AppMeasurementService"
              android:enabled="true"
              android:exported="false" /&gt;
  
          &lt;service
              android:name="com.google.android.gms.measurement.AppMeasurementJobService"
              android:permission="android.permission.BIND_JOB_SERVICE"
              android:enabled="true"
              android:exported="false" /&gt;
  
          &lt;receiver
              android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
              android:permission="com.google.android.c2dm.permission.SEND"
              android:exported="true"&gt;
  
              &lt;intent-filter&gt;
  
                  &lt;action
                      android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
  
                  &lt;category
                      android:name="com.myproject" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;receiver
              android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
              android:exported="false" /&gt;
  
          &lt;service
              android:name="com.google.firebase.iid.FirebaseInstanceIdService"
              android:exported="true"&gt;
  
              &lt;intent-filter
                  android:priority="-500"&gt;
  
                  &lt;action
                      android:name="com.google.firebase.INSTANCE_ID_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
          &lt;provider
              android:name="com.google.firebase.provider.FirebaseInitProvider"
              android:exported="false"
              android:authorities="com.myproject.firebaseinitprovider"
              android:initOrder="100" /&gt;
  
          &lt;service
              android:name="com.appsee.AppseeBackgroundUploader" /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I'm building the APK using <strong>Android Studio Beta 6</strong> and signing with the generated <strong>upload key</strong></p>
  
  <p>How can I solve this?</p>