Cannot export custom built project, gradle rename error?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By psear

I’m trying to export a project with a custom built (because I’m using the google play billing singleton) but I can’t even export the project when using the custom built mode. And it gives an unusual error:

> Task :copyAndRenameDebugApk FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':copyAndRenameDebugApk'.
> Cannot remap path '/srv' which does not have '/' as a prefix

* 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 25s
1 actionable task: 1 executed

Exit Code: 1

Any ideas?