Android build error because of jcenter.bintray.com shutdown

Android build gives an error:

Building android-app
Step 1/8 : FROM docker.io/overhangio/openedx-android:13.0.0 as build
 ---> e090daf07675
Step 2/8 : COPY ./config/edx.properties ./OpenEdXMobile/default_config/edx.properties
 ---> 51a15ab69387
Step 3/8 : COPY ./config/tutor.yaml ./OpenEdXMobile/default_config/tutor.yaml
 ---> 5d771da5790c
Step 4/8 : RUN sed -i "s/APPLICATION_ID = .*/APPLICATION_ID = \"xxx.xxxxxxxx\"/g" constants.gradle
 ---> Running in 6e966fa9e7ab
Removing intermediate container 6e966fa9e7ab
 ---> aa256a0ec50d
Step 5/8 : RUN ./gradlew assembleProdDebuggable
 ---> Running in 8148b83facdf
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:plugins:compileJava NO-SOURCE
> Task :buildSrc:plugins:compileGroovy UP-TO-DATE
> Task :buildSrc:plugins:processResources UP-TO-DATE
> Task :buildSrc:plugins:classes UP-TO-DATE
> Task :buildSrc:plugins:jar UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
> Task :buildSrc:plugins:assemble UP-TO-DATE
> Task :buildSrc:plugins:compileTestJava NO-SOURCE
> Task :buildSrc:plugins:compileTestGroovy NO-SOURCE
> Task :buildSrc:plugins:processTestResources NO-SOURCE
> Task :buildSrc:plugins:testClasses UP-TO-DATE
> Task :buildSrc:plugins:test NO-SOURCE
> Task :buildSrc:plugins:check UP-TO-DATE
> Task :buildSrc:plugins:build UP-TO-DATE

> Configure project :OpenEdXMobile
Kotlin plugin should be enabled before 'kotlin-android-extensions'
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':OpenEdXMobile:compileProdDebuggableJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':OpenEdXMobile:prodDebuggableCompileClasspath'.
   > Could not resolve net.minidev:json-smart:[1.3.1,2.3].
     Required by:
         project :OpenEdXMobile > com.nimbusds:nimbus-jose-jwt:5.7
      > Failed to list versions for net.minidev:json-smart.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml.
            > Could not get resource 'https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml'.
               > Could not GET 'https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml'.
                  > org.apache.http.client.ClientProtocolException (no error message)
   > Could not resolve io.grpc:grpc-core:[1.12.0].
     Required by:
         project :OpenEdXMobile > io.grpc:grpc-okhttp:1.12.0
      > Failed to list versions for io.grpc:grpc-core.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml.
            > Could not get resource 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
               > Could not GET 'https://jcenter.bintray.com/io/grpc/grpc-core/maven-metadata.xml'.
                  > org.apache.http.client.ClientProtocolException (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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 28s
ERROR: Service 'android-app' failed to build: The command '/bin/sh -c ./gradlew assembleProdDebuggable' returned a non-zero code: 1
Error: Command failed with status 1: docker-compose -f /srv/tutor/env/local/docker-compose.yml -f /srv/tutor/env/local/docker-compose.prod.yml -f /srv/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local up --remove-orphans --build -d

The problem stems from:

JCenter and Bintray is shutting down, what to do?.

For the moment, I’m disabling the tutor-android plugin.