错误运行 github 操作 任务':app:kaptDebugKotlin' 执行失败

时间:2021-07-22 03:50:26

标签: android kotlin continuous-integration github-actions

我有用于在 firebase 中分发应用程序的 github 操作,但出现以下错误

使用 com.android.tools.build:gradle:4.2.1 运行令人满意,但 com.android.tools.build:gradle:4.2.2 显示错误

这是我的 yaml 文件

name: firebase-distribution

on:
  push:
    branches:
      - qa

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1
      - name: set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Make gradlew executable
        run: chmod +x ./gradlew
      - name: Build with Gradle
        run: ./gradlew assembleDebug --stacktrace
      - name: Upload to Firebase Distribution
        run: ./gradlew appDistributionUploadDebug

错误:

Task :app:desugarDebugFileDependencies

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
   > java.lang.reflect.InvocationTargetException (no error message)

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

0 个答案:

没有答案