Android 使用终端构建APK

Android 使用终端构建APK,android,gradle,terminal,Android,Gradle,Terminal,我正在尝试从终端生成APK,因此首先我开始使用/gradlew build,但我遇到了此错误,无法找到任何解决方案 FAILURE: Build failed with an exception. * What went wrong: Could not evaluate onlyIf predicate for task ':library:signArchives'. > path may not be null or empty string. path='' * Try: Ru

我正在尝试从终端生成APK,因此首先我开始使用
/gradlew build
,但我遇到了此错误,无法找到任何解决方案

FAILURE: Build failed with an exception.

* What went wrong:
Could not evaluate onlyIf predicate for task ':library:signArchives'.
> path may not be null or empty string. path=''

* 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

Deprecated Gradle features were used in this build, making it 
incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.

BUILD FAILED in 11s

有什么帮助吗。

有什么错误吗?我更新了代码,我的错!您是否能够在不使用终端的情况下构建?