最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Unity Gradle Build Failed on macOS – Could Not Find com.chartboost:chartboost-sdk:9.8.2 - Stack Overflow

programmeradmin1浏览0评论

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() and MavenCentral() are included in the gradle repositories

  • Cleared the Library and Temp folders and restarted Unity

  • Reinstalled 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:

  1. Resolved Dependencies – Used Assets > External Dependency Manager > Android Resolver > Resolve.

  2. Checked Gradle Repositories – Confirmed google() and mavenCentral() are included in gradle repositories.

  3. Cleared Cache and Restarted – Deleted Library and Temp folders, then restarted Unity.

  4. Reinstalled Chartboost SDK – Removed and reinstalled Chartboost SDK and Unity Ads from the Package Manager.

  5. 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.

发布评论

评论列表(0)

  1. 暂无评论