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 https://help.gradle.org

BUILD FAILED in 17s
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.