Cordova Android构建错误:软件包“ android”中找不到属性“ appComponentFactory”的资源标识符

时间:2019-06-21 06:37:00

标签: cordova iconic

我正在尝试构建cordova android,并且构建失败并出现以下错误。 错误:platforms \ android \ build \ intermediates \ manifests \ full \ debug \ AndroidManifest.xml:35:错误:在包“ android”中找不到属性“ appComponentFactory”的资源标识符

失败:构建失败,并出现异常。

  • 出了什么问题: 任务':processDebugResources'的执行失败。
      

    com.android.ide.common.process.ProcessException:无法执行aapt

Node和Cordova的版本 -节点:6.10.3 -科尔多瓦:6.5.0 -android构建工具:26

#The dependencies in build.gradle

task wrapper(type: Wrapper) {
    gradleVersion = '2.14.1'
}

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    debugCompile(project(path: "CordovaLib", configuration: "debug"))
    releaseCompile(project(path: "CordovaLib", configuration: "release"))
    compile "com.android.support:support-v4:24.1.1+"
    compile "com.google.android.gms:play-services-analytics:+"
    compile "com.squareup.okhttp:okhttp-urlconnection:2+"
    compile "com.google.android.gms:play-services-gcm:+"
    compile "com.android.support:support-v4:26.+"
    compile "com.android.support:appcompat-v7:26.+"
    // SUB-PROJECT DEPENDENCIES END
}


#The project.properties file

target=android-26
android.library.reference.1=CordovaLib
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.system.library.2=com.google.android.gms:play-services-analytics:+
cordova.system.library.3=com.squareup.okhttp:okhttp-urlconnection:2+
cordova.gradle.include.1=cordova-plugin-mfp/live-build-extras.gradle
cordova.gradle.include.2=cordova-plugin-mfp-push/live-build-extras.gradle
cordova.system.library.4=com.google.android.gms:play-services-gcm:+
cordova.system.library.5=com.android.support:support-v4:26.+
cordova.system.library.6=com.android.support:appcompat-v7:26.+

Error :   platforms\android\build\intermediates\manifests\full\debug\AndroidManifest.xml:35: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

我们坚持这一点。如果build.gradle或项目属性发生更改,请提供帮助。

0 个答案:

没有答案