Задать вопрос
@maksmanus

Как заставить grandle в unity искать зависимости?

Добрый день, решил я заняться интеграцией рекламы яндекса в свой проект юнити, и стокнулся с проблемой, что external dependency manager не хочет искать зависимости для работы рекламы. Пробовал и отключать и включать галочки android tools в preferenses, JAVA_HOME была проверена, apk без рекламы соббирался.

Вот лог ошибки:

Running Gradle...

F:\game\New Unity Project (8)\Temp\PlayServicesResolverGradle\gradlew.bat --daemon -b "F:\game\New Unity Project (8)\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=F:/Unity/6000.0.0f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=F:\game\New Unity Project (8)\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.yandex.android:mobileads:7.0.1;androidx.lifecycle:lifecycle-process:2.4.1" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=8.3.0"
Executing command: F:\game\New Unity Project (8)\Temp\PlayServicesResolverGradle\gradlew.bat --daemon -b "F:\game\New Unity Project (8)\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=F:/Unity/6000.0.0f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=F:\game\New Unity Project (8)\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.yandex.android:mobileads:7.0.1;androidx.lifecycle:lifecycle-process:2.4.1" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=8.3.0"
Reporting analytics data: /androidresolver/resolve/gradle/failed/fetch?unityVersion=6000.0.0f1&unityPlatform=WindowsEditor&installSource=unitypackage&version=1.2.177&scope= 'Android Resolver: Gradle Resolve: Tool Extraction Failed'
ERROR: Gradle failed to fetch dependencies.

Failed to run 'F:\game\New Unity Project (8)\Temp\PlayServicesResolverGradle\gradlew.bat --daemon -b "F:\game\New Unity Project (8)\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=F:/Unity/6000.0.0f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=F:\game\New Unity Project (8)\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.yandex.android:mobileads:7.0.1;androidx.lifecycle:lifecycle-process:2.4.1" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=8.3.0"'
stdout:

stderr:

FAILURE: Build failed with an exception.

* What went wrong:
Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated.
> Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

exit code: 1
  • Вопрос задан
  • 54 просмотра
Подписаться 1 Средний Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы