首页 > 解决方案 > java.io.IOException:没有更多文件 Android Gradle

问题描述

我正在尝试使用 TeamCity for CI/CD 使用 gradlew 运行干净的构建。我有 BuildAgent 来运行它,我相信它拥有所有必要的 sdk,并安装了所有东西。构建代理在容器中运行。此外,TeamCity 服务器位于 Windows 10 VM 上。

我尝试运行一个干净的构建并运行一些任务,但随后说:

java.io.IOException: There are no more files

我再次运行它时也遇到了这个错误:

任务 :annotations:compileKotlin FAILED :annotations:compileKotlin

Execution failed for task ':annotations:compileKotlin'. org.gradle.api.UncheckedIOException: java.io.IOException: There are no more files

我是否缺少 BuildAgent 中的文件?我不确定问题是什么,因为它在我的本地机器上运行没有问题。

标签: android-studiogradlekotlinteamcity

解决方案


推荐阅读