[TIMOB-28502] Android: Build fails due to Gradle dependency issues (SDK 10.0.1)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2021-07-06T19:32:19.000+0000 |
Affected Version/s | Release 10.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2021-07-03T10:37:31.000+0000 |
Updated | 2021-07-06T19:32:19.000+0000 |
Description
We just updated our Titanium toolchain to the latest 10_0_X branch (currently 10.0.1) and noticed that our third party Gradle dependencies fail to install:
[ERROR] [GRADLE]
[ERROR] [GRADLE] FAILURE: Build failed with an exception.
[ERROR] [GRADLE]
[ERROR] [GRADLE] * What went wrong:
[ERROR] [GRADLE] Execution failed for task ':app:mergeDebugResources'.
[ERROR] [GRADLE] > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
[ERROR] [GRADLE] > Could not find com.journeyapps:zxing-android-embedded:3.2.0.
Same for others:
[ERROR] [GRADLE] > Could not find com.google.android:flexbox:2.0.1.
[ERROR] [GRADLE] > Could not find com.tapadoo.android:alerter:5.1.2.
[ERROR] [GRADLE] > Could not find com.github.florent37:viewtooltip:1.2.2.
[ERROR] [GRADLE] > Could not find me.dm7.barcodescanner:zxing:1.9.13.
Actually, could it be that this is related to the jCenter shutdown?! I definitely need to verify the dependency repos.
As it turns out, that was the issue. This can be closed!
Right. Titanium's jcenter usage was removed in 10.0.1 since it's deprecated. See: [TIMOB-28456] You can re-add jcenter support via a "build.gradle" (example shown in the above ticket), but it's a ticking time bomb since the jcenter servers will be shutdown in less than a year from now. Most maintained jcenter dependencies have been moved to mavenCentral, but you may have to reference newer versions of those dependencies to access them. Sorry about the confusion.
Yeah no worries! We already migrated all our modules and are good to go now!