zeromq / zproject

CLASS Project Generator
Mozilla Public License 2.0
148 stars 104 forks source link

Summary: Problem: Android build fails due to use of JCenter #1314

Closed stephan57160 closed 2 years ago

stephan57160 commented 2 years ago

Since last Saturday, Android build fails with: FAILURE: Build failed with an exception.

https://jcenter.bintray.com/ does not respond at all any more:

prompt> wget https://jcenter.bintray.com/
--2022-10-31 06:54:04--  https://jcenter.bintray.com/
Resolving jcenter.bintray.com (jcenter.bintray.com)... 34.95.74.180
Connecting to jcenter.bintray.com (jcenter.bintray.com)|34.95.74.180|:443... connected.
HTTP request sent, awaiting response... 504 Gateway Time-out
Retrying.
prompt>

or

prompt> get https://jcenter.bintray.com/index.html
--2022-10-31 06:57:15--  https://jcenter.bintray.com/index.html
Resolving jcenter.bintray.com (jcenter.bintray.com)... 34.95.74.180
Connecting to jcenter.bintray.com (jcenter.bintray.com)|34.95.74.180|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-10-31 06:57:16 ERROR 404: Not Found.
prompt>

From stackoverflow:

https://stackoverflow.com/questions/66400264/jcenter-is-at-end-of-life-android-lint-warning-what-is-the-replacement

BINTRAY is stopped by JFROG, and is no more responding.

Solution: Remove jcenter from artifact search repositories.

As explained by stackoverflow, jcenter() should be replaced by mavenCentral(). This mavenCentral() is already available in ZPROJECT generated code.

Questions: