How to solver "build failed with an exception"?

We already 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.

but it does not work for our app, what can i do to solve it?

The bintray services were shut down, so for everything you got form bintray repositories like google.bintray.com and dl.bintray.com, you have to use a different repository.
Look at the pages of the respective libs you use where to get them from now.