RadarCOVID / radar-covid-android

Native Android app using DP^3T Android sdk to handle Exposure Notifications API from Google
Mozilla Public License 2.0
382 stars 84 forks source link

Project not building due to missing dependency #50

Closed josemmo closed 3 years ago

josemmo commented 3 years ago

jCenter has been deprecated since February 2021, giving a 403 Forbidden response to any request to "dl.bintray.com". In consequence, dependency "com.goterl.lazycode:lazysodium-android" cannot be fetched.

Related to https://github.com/CrowdNotifier/crowdnotifier-sdk-android/issues/26.

Steps to reproduce

  1. Clone repository
  2. Checkout "develop" branch
  3. Run ./gradlew build

Gradle error log

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:testPreDebugUnitTest'.
> Could not resolve all task dependencies for configuration ':app:preDebugUnitTestRuntimeClasspath'.
   > Could not resolve com.goterl.lazycode:lazysodium-android:4.2.0.
     Required by:
         project :app > org.crowdnotifier:crowdnotifier-sdk-android:2.1.0
      > Could not resolve com.goterl.lazycode:lazysodium-android:4.2.0.
         > Could not get resource 'https://dl.bintray.com/terl/lazysodium-maven/com/goterl/lazycode/lazysodium-android/4.2.0/lazysodium-android-4.2.0.pom'.
            > Could not GET 'https://dl.bintray.com/terl/lazysodium-maven/com/goterl/lazycode/lazysodium-android/4.2.0/lazysodium-android-4.2.0.pom'. Received status code 403 from server: Forbidden

Proposed solutions

Either upgrade "org.crowdnotifier:crowdnotifier-sdk-android" to v4.0.0 (still in development and with breaking changes) or provide the AAR dependency file for "com.goterl.lazycode:lazysodium-android" mannually:

 allprojects {
     repositories {
         google()
         jcenter()
-         maven {
-            url  "https://dl.bintray.com/terl/lazysodium-maven"
-        }
+        flatDir {
+            dirs 'ext-libs'
+        }
     }
 }