citrix / citrix-mam-sdks

The MAM SDK instrument your apps to enable enforcing policies and controls that are configured in Citrix Endpoint Management.
https://developer.cloud.com/citrixworkspace/mobile-application-integration
11 stars 4 forks source link

Unable to build - missing dependencies (jcenter sunset) #136

Open jonprp opened 2 months ago

jonprp commented 2 months ago

Unable to build app with citrix mam sdk added due to missing dependencies. I think this relates to jcenter being recently shot down.

If it still builds for you - remove gradle cache and you should see same issue.

Cause 1: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.koin:koin-core:2.0.1.
Searched in the following locations:
  - https://raw.githubusercontent.com/citrix/citrix-mam-sdks/main/maven/org/koin/koin-core/2.0.1/koin-core-2.0.1.pom
  - https://repo.maven.apache.org/maven2/org/koin/koin-core/2.0.1/koin-core-2.0.1.pom
  - https://dl.google.com/dl/android/maven2/org/koin/koin-core/2.0.1/koin-core-2.0.1.pom
  - https://jitpack.io/org/koin/koin-core/2.0.1/koin-core-2.0.1.pom
  - https://oss.jfrog.org/artifactory/oss-snapshot-local/org/koin/koin-core/2.0.1/koin-core-2.0.1.pom
Required by:
    project :app > com.citrix.android.sdk:mamsdk:24.7.0.1 > com.citrix.android:workspacehelperlib:Release_20.12.0-2
    project :app > com.citrix.android.sdk:mamsdk:24.7.0.1 > com.citrix.android:authmanagerlitelib:Release_22.9.0-1
Cause 2: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.koin:koin-android:2.0.1.
Searched in the following locations:
  - https://raw.githubusercontent.com/citrix/citrix-mam-sdks/main/maven/org/koin/koin-android/2.0.1/koin-android-2.0.1.pom
  - https://repo.maven.apache.org/maven2/org/koin/koin-android/2.0.1/koin-android-2.0.1.pom
  - https://dl.google.com/dl/android/maven2/org/koin/koin-android/2.0.1/koin-android-2.0.1.pom
  - https://jitpack.io/org/koin/koin-android/2.0.1/koin-android-2.0.1.pom
  - https://oss.jfrog.org/artifactory/oss-snapshot-local/org/koin/koin-android/2.0.1/koin-android-2.0.1.pom
Required by:
    project :app > com.citrix.android.sdk:mamsdk:24.7.0.1 > com.citrix.android:workspacehelperlib:Release_20.12.0-2
    project :app > com.citrix.android.sdk:mamsdk:24.7.0.1 > com.citrix.android:authmanagerlitelib:Release_22.9.0-1
Cause 3: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.linkedin.dexmaker:dexmaker:2.19.1.
Searched in the following locations:
  - https://raw.githubusercontent.com/citrix/citrix-mam-sdks/main/maven/com/linkedin/dexmaker/dexmaker/2.19.1/dexmaker-2.19.1.pom
  - https://repo.maven.apache.org/maven2/com/linkedin/dexmaker/dexmaker/2.19.1/dexmaker-2.19.1.pom
  - https://dl.google.com/dl/android/maven2/com/linkedin/dexmaker/dexmaker/2.19.1/dexmaker-2.19.1.pom
  - https://jitpack.io/com/linkedin/dexmaker/dexmaker/2.19.1/dexmaker-2.19.1.pom
  - https://oss.jfrog.org/artifactory/oss-snapshot-local/com/linkedin/dexmaker/dexmaker/2.19.1/dexmaker-2.19.1.pom
Required by:
    project :app > com.citrix.android.sdk:mamsdk:24.7.0.1 > com.citrix.android.sdk:mvpnsdk:24.7.0.2
simzard commented 2 months ago

I had the same issue. I found an old mirror of the old jcenter dependencies among others. Use

maven { url "https://mirrors.huaweicloud.com/repository/maven/" }

And you will get your missing koin dependencies. Hope that helps! :) The problem is that koin have relocated under a different package name, but citrix hasn't changed their source to point towards that yet...

Annie-XIE commented 1 month ago

@jonprp @simzard We will check and handle this issue CC @xingliangt

xingliangt commented 1 month ago

@jonprp @simzard we have already add koin-core koin-android 2.0.1 and dexmaker-2.28.3 in github at this commit:https://github.com/citrix/citrix-mam-sdks/commit/27994a843dc3b53a3a1c7c1d7d45d96682da73a4 please try again. Thanks!

herrskytte commented 1 month ago

@jonprp @simzard we have already add koin-core koin-android 2.0.1 and dexmaker-2.28.3 in github at this commit:27994a8 please try again. Thanks!

Only cordova are updated with these dependencies. Please fix android.