Resolving Android Dependencies

Hi!
I get this since I installed Ads Meditation package.
capture4

It is stuck at 41%. I can’t build the project

1 Like

Check logs in the console.

1 Like

My solution for AR Masker in building with Unity Ads Mediation/LevelPlay/ironSource was to:

  1. Delete this line from mainTemplate.gradle file:
maven {
    url "https://maven.google.com"
}
  1. Add this line to settingsTemplate.gradle file in dependencyResolutionManagement to repositories section:
        maven {
    url "https://android-sdk.is.com/" // Assets/LevelPlay/Editor/IronSourceAdQualityDependencies.xml:9, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:9, Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:8
}

These files can be created from here:

So, the result of settingsTemplate.gradle will be as follows:

pluginManagement {
    repositories {
        **ARTIFACTORYREPOSITORY**
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}

include ':launcher', ':unityLibrary'
**INCLUDES**

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        **ARTIFACTORYREPOSITORY**
        google()
        mavenCentral()
        maven {
            url "https://android-sdk.is.com/" // Assets/LevelPlay/Editor/IronSourceAdQualityDependencies.xml:9, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:9, Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:8
        }
// Android Resolver Repos Start
        def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
        mavenLocal()
// Android Resolver Repos End
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}