Всех приветствую, Дамы и Господа. Не совсем понимаю за внутренности юнити, но я столкнулся с проблемой при билде на андроид. Сейчас я скину эти ошибки.
Не могли бы вы в подробностях рассказать, что мне нужно сделать?
Версия Unity: 2020.3.33f1
(часть сократил из-за ограничения хабр)
Ошибка 1
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details
> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Ошибка 2
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':launcher:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
> Could not resolve :androidx.arch.core.core-runtime-2.0.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :androidx.arch.core.core-runtime-2.0.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
* 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 11s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Ошибка 3
CommandInvokationFailure: Gradle build failed.
E:\2020.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "E:\2020.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':launcher:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
> Could not resolve :androidx.arch.core.core-runtime-2.0.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :androidx.arch.core.core-runtime-2.0.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :androidx.print.print-1.0.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :androidx.print.print-1.0.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :androidx.slidingpanelayout.slidingpanelayout-1.0.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :androidx.slidingpanelayout.slidingpanelayout-1.0.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :androidx.versionedparcelable.versionedparcelable-1.1.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :androidx.versionedparcelable.versionedparcelable-1.1.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :androidx.viewpager.viewpager-1.0.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :androidx.viewpager.viewpager-1.0.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :com.android.installreferrer.installreferrer-2.2.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :com.android.installreferrer.installreferrer-2.2.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :com.google.android.gms.play-services-ads-identifier-18.0.1.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :com.google.android.gms.play-services-ads-identifier-18.0.1.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :com.google.android.gms.play-services-appset-16.0.2.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :com.google.android.gms.play-services-appset-16.0.2.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :com.google.android.gms.play-services-base-18.0.1.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :com.google.android.gms.play-services-base-18.0.1.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :com.google.android.gms.play-services-basement-18.0.0.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :com.google.android.gms.play-services-basement-18.0.0.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :com.google.android.gms.play-services-tasks-18.0.1.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :com.google.android.gms.play-services-tasks-18.0.1.
> invalid end of optional part at position 25 in pattern /C:/Users/user/Desktop/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
* 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 11s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details
> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
]
Ошибка 4
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002cc] in <3371b3e2e5754acd87e600e068350da5>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <3371b3e2e5754acd87e600e068350da5>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Буду
очень благодарен, если поможете мне. Заранее спасибо