Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28502] Android: Build fails due to Gradle dependency issues (SDK 10.0.1)

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2021-07-06T19:32:19.000+0000
Affected Version/sRelease 10.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2021-07-03T10:37:31.000+0000
Updated2021-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.

Comments

  1. Hans Knöchel 2021-07-03

    Actually, could it be that this is related to the jCenter shutdown?! I definitely need to verify the dependency repos.
  2. Hans Knöchel 2021-07-03

    As it turns out, that was the issue. This can be closed!
  3. Joshua Quick 2021-07-06

    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.
  4. Hans Knöchel 2021-07-06

    Yeah no worries! We already migrated all our modules and are good to go now!

JSON Source