Android AndroidManifest.xml错误:在包“ android”中找不到属性“ appComponentFactory”的资源标识符

时间:2018-10-09 08:04:13

标签: android android-manifest

今天我正在尝试构建我的项目,但是构建失败,这里是日志:

    AGPBI: {"kind":"error","text":"No resource identifier found for attribute \u0027appComponentFactory\u0027 in package \u0027android\u0027","sources":[{"file":"xxxxx/app/build/intermediates/manifests/full/xxxxx/debug/AndroidManifest.xml","position":{"startLine":34}}],"original":"","tool":"AAPT"}
    xxxxx/app/build/intermediates/manifests/full/xxxxx/debug/AndroidManifest.xml:35: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'
    Failed to execute aapt
    com.android.ide.common.process.ProcessException: Failed to execute aapt
        at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
        at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
        at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
        at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
 ....
        at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:822)
        at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:664)
        at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:48)
        at com.android.build.gradle.internal.process.GradleProcessExecutor$1.run(GradleProcessExecutor.java:58)
        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:380)
        at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
        ... 9 more
    :app:processxxxxxDebugResources FAILED
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':app:processxxxxxDebugResources'.
    > Failed to execute aapt

但是我没有修改任何代码,我发现这些代码不应该在AndroidManifest中使用,因为我的项目compileSDKVersion是26,而不是最新的28,我不知道这个问题,请帮帮我,谢谢!

0 个答案:

没有答案