我尝试运行包含多个模块的项目。在构建步骤(app模块)上的项目配置期间,gradle会引发以下异常:

Caused by: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'.
    at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:91)
    ... 40 more
Caused by: org.gradle.api.GradleException: There must be one branch ID(.bid) file in the root dir of the project
    at com.sec.sm.gradle.SecTask$_closure1.doCall(SecTask.groovy:124)
    at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:63)
    at org.gradle.listener.ActionBroadcast.execute(ActionBroadcast.java:39)
    ... 60 more

Gradle版本:2.2.1 (无法选择更新为最新版本)

不幸的是,我没有在gradle文档/源代码中找到与提到的异常相关的任何信息。谢谢你的帮助

最佳答案

如注释中的@chait所述,项目缺少0.bid文件,该文件应由IDE在根目录中创建。

关于android - Gradle异常: “There must be one branch ID(.bid) file in the root dir of the project”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38893765/

10-16 10:09