获取“上传APK的AndroidManifest.xml无法解析。它编译是否正确?“启用Google应用签名后出现错误 [英] Getting "The AndroidManifest.xml of the uploaded APK could not be parsed. Was it compiled properly?" error after enabling Google App Signing

查看:1348
本文介绍了获取“上传APK的AndroidManifest.xml无法解析。它编译是否正确?“启用Google应用签名后出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启用 Google应用签名后,每次我尝试将已签名的APK发布到Play商店我收到错误消息:上传的APK的AndroidManifest.xml无法解析。编译是否正确?



以下是使用 APK分析器从签名APK获取的 Android Manifest 工具

 <?xml version =1.0encoding =utf-8?> 
< manifest
xmlns:android =http://schemas.android.com/apk/res/android
android:versionCode =227
android:versionName =4.9
package =com.myproject>

< uses-sdk
android:minSdkVersion =15
android:targetSdkVersion =25/>

<使用权限
android:name =com.google.android.c2dm.permission.RECEIVE/>

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

< uses-permission
android:name =android.permission.WAKE_LOCK/>

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

< uses-permission
android:name =android.permission.VIBRATE/>

<使用权限
android:name =android.permission.RECEIVE_BOOT_COMPLETED/>

<使用权限
android:name =android.permission.MANAGE_USERS/>

< uses-permission
android:name =com.google.android.providers.gsf.permission.READ_GSERVICES/>

< uses-permission
android:name =com.android.vending.BILLING/>

< permission
android:name =com.myproject.permission.C2D_MESSAGE
android:protectionLevel =0x2/>

< uses-permission
android:name =com.myproject.permission.C2D_MESSAGE/>

< 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 = 真 >

< meta-data
android:name =search-engine
android:resource =@ ref / 0x7f120001/>

< meta-data
android:name =com.google.android.gms.version
android:value =@ ref / 0x7f0a0006/>

< meta-data
android:name =com.mixpanel.android.MPConfig.ResourcePackageName
android:value =br.com.regmoraes.myproject/ >

< 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/>

< meta-data
android:name =com.mixpanel.android.MPConfig.AutoShowMixpanelUpdates
android:value =true/>

< meta-data
android:name =com.mixpanel.android.MPConfig.EnableDebugLogging
android:value =true/>

< meta-data
android:name =io.fabric.ApiKey
android:value =123456/>

< meta-data
android:name =io.branch.sdk.TestMode
android:value =false/>

< meta-data
android:name =io.branch.sdk.BranchKey
android:value =123456/>

< service
android:name =br.com.regmoraes.myproject.push.firebase.MessagingService>

< intent-filter>

android:name =com.google.firebase.MESSAGING_EVENT/>
< / intent-filter>
< / service>

< service
android:name =br.com.regmoraes.myproject.push.firebase.InstanceIdService>

< intent-filter>

android:name =com.google.firebase.INSTANCE_ID_EVENT/>
< / intent-filter>
< / service>

< service
android:name =br.com.regmoraes.myproject.conteudo.sync.service.SyncService
android:exported =false/>

< receiver
android:name =com.mixpanel.android.mpmetrics.GCMReceiver
android:permission =com.google.android.c2dm.permission.SEND >

< intent-filter>

android:name =com.google.android.c2dm.intent.RECEIVE/>

android:name =com.google.android.c2dm.intent.REGISTRATION/>

android:name =com.myproject/>
< / intent-filter>
< / receiver>

< receiver
android:name =com.mixpanel.android.mpmetrics.InstallReferrerReceiver
android:exported =true>

< intent-filter>

android:name =com.android.vending.INSTALL_REFERRER/>
< / intent-filter>
< / receiver>

< receiver
android:name =io.branch.referral.InstallListener
android:exported =true>

< intent-filter>

android:name =com.android.vending.INSTALL_REFERRER/>
< / intent-filter>
< / receiver>

android:theme =@ ref / 0x7f1000a7
android:label =@ ref / 0x7f0f004f
android:name =com。 facebook.FacebookActivity
android:configChanges =0x5b0/>

< meta-data
android:name =com.facebook.sdk.ApplicationId
android:value =@ ref / 0x7f0f0000/>

< provider
android:name =com.facebook.FacebookContentProvider
android:exported =true
android:authorities =com.facebook。 app.FacebookContentProvider976563775688475/>

android:theme =@ ref / 0x7f100199
android:label =@ ref / 0x7f0f014d
android:name =com。 zendesk.sdk.support.SupportActivity
android:windowSoftInputMode =0x10/>

android:theme =@ ref / 0x7f100199
android:label =@ ref / 0x7f0f00be
android:name =com。 zendesk.sdk.feedback.ui.ContactZendeskActivity
android:windowSoftInputMode =0x14/>

android:theme =@ ref / 0x7f10012f
android:label =@ ref / 0x7f0f004f
android:name =br。 com.regmoraes.myproject.sessao.login.basic.presentation.LoginActivity
android:screenOrientation =1/>

android:label =@ ref / 0x7f0f004f
android:name =br.com.regmoraes.myproject.ui.activity.BaseActivity
android:exported =true
android:launchMode =2>

< intent-filter
android:label =@ ref / 0x7f0f004f>

android:name =android.intent.action.MAIN/>
< / intent-filter>

< intent-filter>

< action
android:name =android.intent.action.VIEW/>

< category
android:name =android.intent.category.DEFAULT/>

< category
android:name =android.intent.category.BROWSABLE/>

< data
android:scheme =https
android:host =host
android:pathPrefix =/ 123/>
< / intent-filter>
< / activity>

< activity
android:label =@ ref / 0x7f0f0162
android:name =br.com.regmoraes.myproject.home.presentation.HomeActivity
android:windowSoftInputMode =0x22/>

android:theme =@ ref / 0x7f10012f
android:label =@ ref / 0x7f0f004f
android:name =br。 com.regmoraes.myproject.conteudo.atualizacao.presentation.AtualizacaoConteudoActivity
android:screenOrientation =1/>

android:label =@ ref / 0x7f0f00fe
android:name =br.com.regmoraes.myproject.configuracoes.presentation.ConfiguracoesActivity
android:screenOrientation =1/>

android:theme =@ ref / 0x7f10012f
android:label =@ ref / 0x7f0f004f
android:name =br。 com.regmoraes.myproject.sessao.manterconectado.presentation.ManterConectadoActivity/>

android:theme =@ ref / 0x7f1000d3
android:label =@ ref / 0x7f0f004f
android:name =br。 com.regmoraes.myproject.splash.ui.SplashActivity
android:screenOrientation =1>

< intent-filter
android:label =我的项目>

< action
android:name =android.intent.action.VIEW/>

< category
android:name =android.intent.category.DEFAULT/>

< category
android:name =android.intent.category.BROWSABLE/>

< data
android:scheme =com.myproject
android:host =open/>
< / intent-filter>

< intent-filter
android:label =我的项目>

< action
android:name =android.intent.action.VIEW/>

< category
android:name =android.intent.category.DEFAULT/>

< category
android:name =android.intent.category.BROWSABLE/>

< data
android:scheme =http
android:host =www.regmoraes.com.br
android:pathPrefix =/ android />
< / intent-filter>

< intent-filter>

android:name =android.intent.action.MAIN/>

< category
android:name =android.intent.category.LAUNCHER/>
< / intent-filter>
< / 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>

< meta-data
android:name =android.support.PARENT_ACTIVITY
android:value =。sessao.login.basic.presentation.LoginActivity/> ;
< / activity>

android:theme =@ ref / 0x0103000f
android:name =com.google.android.gms.ads.AdActivity
android:configChanges =0xfb0/>

< activity
android:theme =@ ref / 0x7f10012f
android:label =@ ref / 0x7f0f016a
android:name =br。 com.regmoraes.myproject.ui.activity.WelcomeActivity
android:screenOrientation =1/>

< activity
android:name =br.com.regmoraes.myproject.home.presentation.NavigationDrawerActivity/>

android:label =@ ref / 0x7f0f016a
android:name =br.com.regmoraes.myproject.conteudo.commons.TabbedContentActivity
android:windowSoftInputMode =0x22/>

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>

< meta-data
android:name =android.support.PARENT_ACTIVITY
android:value =。sessao.login.basic.presentation.LoginActivity/> ;
< / 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>

< meta-data
android:name =android.support.PARENT_ACTIVITY
android:value =。sessao.login.basic.presentation.LoginActivity/> ;
< / activity>

< activity
android:label =@ ref / 0x7f0f0164
android:name =br.com.regmoraes.myproject.conteudo.commons.ContentListActivity
android:windowSoftInputMode =0x22/>

android:label =@ ref / 0x7f0f0160
android:name =br.com.regmoraes.myproject.conteudo.commons.DetailContentActivity
android:windowSoftInputMode =0x22/>

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>

< intent-filter>

android:name =android.intent.action.SEARCH/>
< / intent-filter>

< meta-data
android:name =android.app.searchable
android:resource =@ ref / 0x7f120002/>
< / activity>

android:label =@ ref / 0x7f0f0165
android:name =br.com.regmoraes.myproject.conteudo.notas.presentation.NotasActivity
android:screenOrientation =1
android:windowSoftInputMode =0x22/>

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/>

android:theme =@ ref / 0x7f10012f
android:label =@ ref / 0x7f0f0166
android:name =br。 com.regmoraes.myproject.ui.activity.PrintDialogActivity
android:windowSoftInputMode =0x22/>

android:theme =@ ref / 0x7f10012f
android:name =br.com.regmoraes.myproject.sessao.login.facebook.presentation。登录FacebookActivity/>

android:theme =@ ref / 0x7f10012f
android:name =br.com.regmoraes.myproject.assinatura.presentation.AssinaturaActivity
android:screenOrientation =1
android:windowSoftInputMode =0x22/>

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/>

< receiver
android:name =com.zendesk.sdk.power.BatteryStateBroadcastReceiver>

< intent-filter>

android:name =android.intent.action.BATTERY_LOW/>

android:name =android.intent.action.BATTERY_OKAY/>
< / intent-filter>
< / receiver>

android:label =@ ref / 0x7f0f00be
android:name =com.zendesk.sdk.requests.ViewRequestActivity
android: windowSoftInputMode =0x12/>

< activity
android:label =@ ref / 0x7f0f0131
android:name =com.zendesk.sdk.requests.RequestActivity/>

< activity
android:name =com.zendesk.sdk.support.ViewArticleActivity
android:configChanges =0x480/>

< receiver
android:name =com.zendesk.sdk.deeplinking.ZendeskDeepLinkingBroadcastReceiver
android:exported =false>

< intent-filter>

android:name =com.zendesk.sdk.deeplinking/>
< / intent-filter>
< / receiver>

< provider
android:name =com.zendesk.belvedere.BelvedereFileProvider
android:exported =false
android:authorities =com。 myproject.belvedere.attachments
android:grantUriPermissions =true>

< meta-data
android:name =android.support.FILE_PROVIDER_PATHS
android:resource =@ ref / 0x7f120000/>
< / provider>

< meta-data
android:name =android.support.VERSION
android:value =25.4.0/>

< service
android:name =com.google.firebase.messaging.FirebaseMessagingService
android:exported =true>

< intent-filter
android:priority = - 500>

android:name =com.google.firebase.MESSAGING_EVENT/>
< / intent-filter>
< / service>

android:theme =@ ref / 0x01030010
android:name =com.google.android.gms.common.api.GoogleApiActivity
android:exported =false/>

< receiver
android:name =com.google.android.gms.measurement.AppMeasurementReceiver
android:enabled =true
android:已导出=false/>

< receiver
android:name =com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver
android:permission =android.permission.INSTALL_PACKAGES
android:enabled =true
android:exported =true>

< intent-filter>

android:name =com.android.vending.INSTALL_REFERRER/>
< / intent-filter>
< / receiver>

< service
android:name =com.google.android.gms.measurement.AppMeasurementService
android:enabled =true
android:已导出=false/>

< service
android:name =com.google.android.gms.measurement.AppMeasurementJobService
android:permission =android.permission.BIND_JOB_SERVICE
android:enabled =true
android:exported =false/>

< receiver
android:name =com.google.firebase.iid.FirebaseInstanceIdReceiver
android:permission =com.google.android.c2dm.permission.SEND
android:exported =true>

< intent-filter>

android:name =com.google.android.c2dm.intent.RECEIVE/>

android:name =com.myproject/>
< / intent-filter>
< / receiver>

< receiver
android:name =com.google.firebase.iid.FirebaseInstanceIdInternalReceiver
android:exported =false/>

< service
android:name =com.google.firebase.iid.FirebaseInstanceIdService
android:exported =true>

< intent-filter
android:priority = - 500>

android:name =com.google.firebase.INSTANCE_ID_EVENT/>
< / intent-filter>
< / service>

< provider
android:name =com.google.firebase.provider.FirebaseInitProvider
android:exported =false
android:authorities = com.myproject.firebaseinitprovider
android:initOrder =100/>

< service
android:name =com.appsee.AppseeBackgroundUploader/>
< / application>
< / manifest>

我使用 Android Studio Beta 6 构建APK,生成的上传密钥



如何解决这个问题?

解决方案

strong> Beta 7
  • 更新 Gradle插件 3.0.0-beta7 / li>
  • buildToolsVersion 更改为 26 strong> 26.0.2

  • Android支持库更新为 26.1.0。



  • 所以这个错误可能是由 Android Studio 3.0 Beta 6中的一个错误引起的


    After enabling Google App Signing, everytime I try to upload a signed release APK to Play Store I get an error saying The AndroidManifest.xml of the uploaded APK could not be parsed. Was it compiled properly?.

    Here is the Android Manifest file got from the signed APK with the APK Analyzer tool

    <?xml version="1.0" encoding="utf-8"?>
    <manifest
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:versionCode="227"
        android:versionName="4.9"
        package="com.myproject">
    
        <uses-sdk
            android:minSdkVersion="15"
            android:targetSdkVersion="25" />
    
        <uses-permission
            android:name="com.google.android.c2dm.permission.RECEIVE" />
    
        <uses-permission
            android:name="android.permission.INTERNET" />
    
        <uses-permission
            android:name="android.permission.WAKE_LOCK" />
    
        <uses-permission
            android:name="android.permission.ACCESS_NETWORK_STATE" />
    
        <uses-permission
            android:name="android.permission.VIBRATE" />
    
        <uses-permission
            android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    
        <uses-permission
            android:name="android.permission.MANAGE_USERS" />
    
        <uses-permission
            android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    
        <uses-permission
            android:name="com.android.vending.BILLING" />
    
        <permission
            android:name="com.myproject.permission.C2D_MESSAGE"
            android:protectionLevel="0x2" />
    
        <uses-permission
            android:name="com.myproject.permission.C2D_MESSAGE" />
    
        <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">
    
            <meta-data
                android:name="search-engine"
                android:resource="@ref/0x7f120001" />
    
            <meta-data
                android:name="com.google.android.gms.version"
                android:value="@ref/0x7f0a0006" />
    
            <meta-data
                android:name="com.mixpanel.android.MPConfig.ResourcePackageName"
                android:value="br.com.regmoraes.myproject" />
    
            <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"/>
    
            <meta-data
                android:name="com.mixpanel.android.MPConfig.AutoShowMixpanelUpdates"
                android:value="true" />
    
            <meta-data
                android:name="com.mixpanel.android.MPConfig.EnableDebugLogging"
                android:value="true" />
    
            <meta-data
                android:name="io.fabric.ApiKey"
                android:value="123456" />
    
            <meta-data
                android:name="io.branch.sdk.TestMode"
                android:value="false" />
    
            <meta-data
                android:name="io.branch.sdk.BranchKey"
                android:value="123456" />
    
            <service
                android:name="br.com.regmoraes.myproject.push.firebase.MessagingService">
    
                <intent-filter>
    
                    <action
                        android:name="com.google.firebase.MESSAGING_EVENT" />
                </intent-filter>
            </service>
    
            <service
                android:name="br.com.regmoraes.myproject.push.firebase.InstanceIdService">
    
                <intent-filter>
    
                    <action
                        android:name="com.google.firebase.INSTANCE_ID_EVENT" />
                </intent-filter>
            </service>
    
            <service
                android:name="br.com.regmoraes.myproject.conteudo.sync.service.SyncService"
                android:exported="false" />
    
            <receiver
                android:name="com.mixpanel.android.mpmetrics.GCMReceiver"
                android:permission="com.google.android.c2dm.permission.SEND">
    
                <intent-filter>
    
                    <action
                        android:name="com.google.android.c2dm.intent.RECEIVE" />
    
                    <action
                        android:name="com.google.android.c2dm.intent.REGISTRATION" />
    
                    <category
                        android:name="com.myproject" />
                </intent-filter>
            </receiver>
    
            <receiver
                android:name="com.mixpanel.android.mpmetrics.InstallReferrerReceiver"
                android:exported="true">
    
                <intent-filter>
    
                    <action
                        android:name="com.android.vending.INSTALL_REFERRER" />
                </intent-filter>
            </receiver>
    
            <receiver
                android:name="io.branch.referral.InstallListener"
                android:exported="true">
    
                <intent-filter>
    
                    <action
                        android:name="com.android.vending.INSTALL_REFERRER" />
                </intent-filter>
            </receiver>
    
            <activity
                android:theme="@ref/0x7f1000a7"
                android:label="@ref/0x7f0f004f"
                android:name="com.facebook.FacebookActivity"
                android:configChanges="0x5b0" />
    
            <meta-data
                android:name="com.facebook.sdk.ApplicationId"
                android:value="@ref/0x7f0f0000" />
    
            <provider
                android:name="com.facebook.FacebookContentProvider"
                android:exported="true"
                android:authorities="com.facebook.app.FacebookContentProvider976563775688475" />
    
            <activity
                android:theme="@ref/0x7f100199"
                android:label="@ref/0x7f0f014d"
                android:name="com.zendesk.sdk.support.SupportActivity"
                android:windowSoftInputMode="0x10" />
    
            <activity
                android:theme="@ref/0x7f100199"
                android:label="@ref/0x7f0f00be"
                android:name="com.zendesk.sdk.feedback.ui.ContactZendeskActivity"
                android:windowSoftInputMode="0x14" />
    
            <activity
                android:theme="@ref/0x7f10012f"
                android:label="@ref/0x7f0f004f"
                android:name="br.com.regmoraes.myproject.sessao.login.basic.presentation.LoginActivity"
                android:screenOrientation="1" />
    
            <activity
                android:label="@ref/0x7f0f004f"
                android:name="br.com.regmoraes.myproject.ui.activity.BaseActivity"
                android:exported="true"
                android:launchMode="2">
    
                <intent-filter
                    android:label="@ref/0x7f0f004f">
    
                    <action
                        android:name="android.intent.action.MAIN" />
                </intent-filter>
    
                <intent-filter>
    
                    <action
                        android:name="android.intent.action.VIEW" />
    
                    <category
                        android:name="android.intent.category.DEFAULT" />
    
                    <category
                        android:name="android.intent.category.BROWSABLE" />
    
                    <data
                        android:scheme="https"
                        android:host="host"
                        android:pathPrefix="/123" />
                </intent-filter>
            </activity>
    
            <activity
                android:label="@ref/0x7f0f0162"
                android:name="br.com.regmoraes.myproject.home.presentation.HomeActivity"
                android:windowSoftInputMode="0x22" />
    
            <activity
                android:theme="@ref/0x7f10012f"
                android:label="@ref/0x7f0f004f"
                android:name="br.com.regmoraes.myproject.conteudo.atualizacao.presentation.AtualizacaoConteudoActivity"
                android:screenOrientation="1" />
    
            <activity
                android:label="@ref/0x7f0f00fe"
                android:name="br.com.regmoraes.myproject.configuracoes.presentation.ConfiguracoesActivity"
                android:screenOrientation="1" />
    
            <activity
                android:theme="@ref/0x7f10012f"
                android:label="@ref/0x7f0f004f"
                android:name="br.com.regmoraes.myproject.sessao.manterconectado.presentation.ManterConectadoActivity" />
    
            <activity
                android:theme="@ref/0x7f1000d3"
                android:label="@ref/0x7f0f004f"
                android:name="br.com.regmoraes.myproject.splash.ui.SplashActivity"
                android:screenOrientation="1">
    
                <intent-filter
                    android:label="My Project">
    
                    <action
                        android:name="android.intent.action.VIEW" />
    
                    <category
                        android:name="android.intent.category.DEFAULT" />
    
                    <category
                        android:name="android.intent.category.BROWSABLE" />
    
                    <data
                        android:scheme="com.myproject"
                        android:host="open" />
                </intent-filter>
    
                <intent-filter
                    android:label="My Project">
    
                    <action
                        android:name="android.intent.action.VIEW" />
    
                    <category
                        android:name="android.intent.category.DEFAULT" />
    
                    <category
                        android:name="android.intent.category.BROWSABLE" />
    
                    <data
                        android:scheme="http"
                        android:host="www.regmoraes.com.br"
                        android:pathPrefix="/android" />
                </intent-filter>
    
                <intent-filter>
    
                    <action
                        android:name="android.intent.action.MAIN" />
    
                    <category
                        android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
    
            <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">
    
                <meta-data
                    android:name="android.support.PARENT_ACTIVITY"
                    android:value=".sessao.login.basic.presentation.LoginActivity" />
            </activity>
    
            <activity
                android:theme="@ref/0x0103000f"
                android:name="com.google.android.gms.ads.AdActivity"
                android:configChanges="0xfb0" />
    
            <activity
                android:theme="@ref/0x7f10012f"
                android:label="@ref/0x7f0f016a"
                android:name="br.com.regmoraes.myproject.ui.activity.WelcomeActivity"
                android:screenOrientation="1" />
    
            <activity
                android:name="br.com.regmoraes.myproject.home.presentation.NavigationDrawerActivity" />
    
            <activity
                android:label="@ref/0x7f0f016a"
                android:name="br.com.regmoraes.myproject.conteudo.commons.TabbedContentActivity"
                android:windowSoftInputMode="0x22" />
    
            <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">
    
                <meta-data
                    android:name="android.support.PARENT_ACTIVITY"
                    android:value=".sessao.login.basic.presentation.LoginActivity" />
            </activity>
    
            <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">
    
                <meta-data
                    android:name="android.support.PARENT_ACTIVITY"
                    android:value=".sessao.login.basic.presentation.LoginActivity" />
            </activity>
    
            <activity
                android:label="@ref/0x7f0f0164"
                android:name="br.com.regmoraes.myproject.conteudo.commons.ContentListActivity"
                android:windowSoftInputMode="0x22" />
    
            <activity
                android:label="@ref/0x7f0f0160"
                android:name="br.com.regmoraes.myproject.conteudo.commons.DetailContentActivity"
                android:windowSoftInputMode="0x22" />
    
            <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">
    
                <intent-filter>
    
                    <action
                        android:name="android.intent.action.SEARCH" />
                </intent-filter>
    
                <meta-data
                    android:name="android.app.searchable"
                    android:resource="@ref/0x7f120002" />
            </activity>
    
            <activity
                android:label="@ref/0x7f0f0165"
                android:name="br.com.regmoraes.myproject.conteudo.notas.presentation.NotasActivity"
                android:screenOrientation="1"
                android:windowSoftInputMode="0x22" />
    
            <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" />
    
            <activity
                android:theme="@ref/0x7f10012f"
                android:label="@ref/0x7f0f0166"
                android:name="br.com.regmoraes.myproject.ui.activity.PrintDialogActivity"
                android:windowSoftInputMode="0x22" />
    
            <activity
                android:theme="@ref/0x7f10012f"
                android:name="br.com.regmoraes.myproject.sessao.login.facebook.presentation.LoginFacebookActivity" />
    
            <activity
                android:theme="@ref/0x7f10012f"
                android:name="br.com.regmoraes.myproject.assinatura.presentation.AssinaturaActivity"
                android:screenOrientation="1"
                android:windowSoftInputMode="0x22" />
    
            <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" />
    
            <receiver
                android:name="com.zendesk.sdk.power.BatteryStateBroadcastReceiver">
    
                <intent-filter>
    
                    <action
                        android:name="android.intent.action.BATTERY_LOW" />
    
                    <action
                        android:name="android.intent.action.BATTERY_OKAY" />
                </intent-filter>
            </receiver>
    
            <activity
                android:label="@ref/0x7f0f00be"
                android:name="com.zendesk.sdk.requests.ViewRequestActivity"
                android:windowSoftInputMode="0x12" />
    
            <activity
                android:label="@ref/0x7f0f0131"
                android:name="com.zendesk.sdk.requests.RequestActivity" />
    
            <activity
                android:name="com.zendesk.sdk.support.ViewArticleActivity"
                android:configChanges="0x480" />
    
            <receiver
                android:name="com.zendesk.sdk.deeplinking.ZendeskDeepLinkingBroadcastReceiver"
                android:exported="false">
    
                <intent-filter>
    
                    <action
                        android:name="com.zendesk.sdk.deeplinking" />
                </intent-filter>
            </receiver>
    
            <provider
                android:name="com.zendesk.belvedere.BelvedereFileProvider"
                android:exported="false"
                android:authorities="com.myproject.belvedere.attachments"
                android:grantUriPermissions="true">
    
                <meta-data
                    android:name="android.support.FILE_PROVIDER_PATHS"
                    android:resource="@ref/0x7f120000" />
            </provider>
    
            <meta-data
                android:name="android.support.VERSION"
                android:value="25.4.0" />
    
            <service
                android:name="com.google.firebase.messaging.FirebaseMessagingService"
                android:exported="true">
    
                <intent-filter
                    android:priority="-500">
    
                    <action
                        android:name="com.google.firebase.MESSAGING_EVENT" />
                </intent-filter>
            </service>
    
            <activity
                android:theme="@ref/0x01030010"
                android:name="com.google.android.gms.common.api.GoogleApiActivity"
                android:exported="false" />
    
            <receiver
                android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
                android:enabled="true"
                android:exported="false" />
    
            <receiver
                android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
                android:permission="android.permission.INSTALL_PACKAGES"
                android:enabled="true"
                android:exported="true">
    
                <intent-filter>
    
                    <action
                        android:name="com.android.vending.INSTALL_REFERRER" />
                </intent-filter>
            </receiver>
    
            <service
                android:name="com.google.android.gms.measurement.AppMeasurementService"
                android:enabled="true"
                android:exported="false" />
    
            <service
                android:name="com.google.android.gms.measurement.AppMeasurementJobService"
                android:permission="android.permission.BIND_JOB_SERVICE"
                android:enabled="true"
                android:exported="false" />
    
            <receiver
                android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
                android:permission="com.google.android.c2dm.permission.SEND"
                android:exported="true">
    
                <intent-filter>
    
                    <action
                        android:name="com.google.android.c2dm.intent.RECEIVE" />
    
                    <category
                        android:name="com.myproject" />
                </intent-filter>
            </receiver>
    
            <receiver
                android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
                android:exported="false" />
    
            <service
                android:name="com.google.firebase.iid.FirebaseInstanceIdService"
                android:exported="true">
    
                <intent-filter
                    android:priority="-500">
    
                    <action
                        android:name="com.google.firebase.INSTANCE_ID_EVENT" />
                </intent-filter>
            </service>
    
            <provider
                android:name="com.google.firebase.provider.FirebaseInitProvider"
                android:exported="false"
                android:authorities="com.myproject.firebaseinitprovider"
                android:initOrder="100" />
    
            <service
                android:name="com.appsee.AppseeBackgroundUploader" />
        </application>
    </manifest>
    

    I'm building the APK using Android Studio Beta 6 and signing with the generated upload key

    How can I solve this?

    解决方案

    Problem fixed after following the bellow steps:

    • Update Android Studio 3.0 to Beta 7
    • Update Gradle Plugin to 3.0.0-beta7 (required by AS Beta 7)
    • Change compileSdkVersion to 26
    • Change buildToolsVersion to 26.0.2
    • Update the Android Support Libraries to 26.1.0.

    So probably the error was caused by a bug in Android Studio 3.0 Beta 6

    这篇关于获取“上传APK的AndroidManifest.xml无法解析。它编译是否正确?“启用Google应用签名后出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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