I'm trying to build my Unity project for Android on macOS, but the Gradle build keeps failing with the following error:
pgsql
Execution failed for task ':launcher:checkReleaseAarMetadata'. \> Could not resolve all dependencies for configuration ':launcher:releaseRuntimeClasspath'. \> Could not find com.chartboost:chartboost-sdk:9.8.2.
It seems that Gradle is unable to find the Chartboost SDK. I have already tried the following steps:
Checked
Assets > External Dependency Manager > Android Resolver > Resolve
Made sure
Google()
andMavenCentral()
are included in thegradle
repositoriesCleared the
Library
andTemp
folders and restarted UnityReinstalled Chartboost SDK and Unity Ads from Unity Package Manager
Checked
gradle.properties
to ensure no dependency issues
I'm using:
Unity Version: 6
MacBook Model: M1
Gradle Version: 8.4
Chartboost SDK Version: 9.8.2
Does anyone know how to resolve this dependency issue? Any help would be appreciated!
What I Tried:
Resolved Dependencies – Used
Assets > External Dependency Manager > Android Resolver > Resolve
.Checked Gradle Repositories – Confirmed
google()
andmavenCentral()
are included ingradle
repositories.Cleared Cache and Restarted – Deleted
Library
andTemp
folders, then restarted Unity.Reinstalled Chartboost SDK – Removed and reinstalled Chartboost SDK and Unity Ads from the Package Manager.
Checked gradle.properties – Ensured no conflicts with dependency versions.
What I Expected:
I expected the build to succeed after resolving dependencies, clearing caches, and verifying repository configurations. However, the error persists, and Gradle cannot find com.chartboost:chartboost-sdk:9.8.2
.