我有用于在 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