Build failed when "./gradlew uploadArchives"

Hi there,
I’m trying to create my own android module and upload to maven as a private lib. The configuration was completed yesterday and everything was fine, the .aar file was successfully compiled and uploaded with the command “./gradlew uploadArchives”, but today when I want to update the lib, it fails with following error:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':components:kaptReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
   > java.lang.reflect.InvocationTargetException (no error message)

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

* Get more help at

22 actionable tasks: 2 executed, 20 up-to-date

And also my colleague compiled it from the same branch and succeed.
Could any one help me out?

Also If the provided info is not enough please tell me. Thank you.

Hello. This looks like a Kapt bug. If this is still actual, can you please report an issue to and (privately) attach a sample project to reproduce and investagate. Thank you.

1 Like

Same here. I “solved”, downgrading the “org.jetbrains.kotlin:kotlin-reflect” to 1.3.72. Works fine.