科尔多瓦的Android构建失败:与名称“调试”配置未找到(Cordova Android Buil

2019-09-28 03:38发布

加入后的PhoneGap,Facebook的插件到我的科尔多瓦项目,并建立了机器人项目时,出现错误:

无法评估模块FacebookLib:名为“调试”配置未找到

我的Android项目结构如下所示:

android
  --> CordovaLib
        --> build.gradle
  --> phonegap-facebook-plugin
        --> chooze-FacebookLib
              --> build.gradle
  --> build.gradle
  --> settings.gradle

build.gradle文件包含此:

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    debugCompile(project(path: "CordovaLib", configuration: "debug"))
    releaseCompile(project(path: "CordovaLib", configuration: "release"))
    debugCompile(project(path: "phonegap-facebook-plugin:FacebookLib", configuration: "debug"))
    releaseCompile(project(path: "phonegap-facebook-plugin:FacebookLib", configuration: "release"))
    // SUB-PROJECT DEPENDENCIES END
}

settings.gradle

// GENERATED FILE - DO NOT EDIT
include ":"
include ":CordovaLib"
include ":phonegap-facebook-plugin:FacebookLib"
project(":phonegap-facebook-plugin:FacebookLib").projectDir = new File("phonegap-facebook-plugin/chooze-FacebookLib")

我似乎没有发现,将解决这个问题的任何解决方案。 我会很感激的任何建议。 谢谢!

Answer 1:

尝试如此多的解决方案后,我用另一个插件,这是解决问题的科尔多瓦-插件- facebook4官方插件的分支版本- 。 奇迹般有效!



文章来源: Cordova Android Build Failure: Configuration with name 'debug' not found