Skip to content

Cannot access first() element from an empty Iterable #42

Description

@wuchengithub

Cannot access first() element from an empty Iterable

build 的时候发生问题 模块:sample-plugin

afterEvaluate {
android {
buildTypes.findAll().each { buildType ->
def buildTypeName = buildType.getName()
def task = project.getTasksByName("check${buildTypeName.capitalize()}Classpath", false).first() as Task
task.dependsOn gradle.includedBuild('core').task(':common:jarDebugPackage')
task.dependsOn gradle.includedBuild('dynamic').task(':dynamic-host:jarDebugPackage')
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions