Задать вопрос
MicroProger
@MicroProger
Работает - не трогай

Ошибки при билдинге в Unity3D. Для меня слишком сложно, перепробывал все! Есть варианты?

Приветствую! Это ужас! Примерно два дня я пытался решить 4 ошибки, которые возникали при билдинге моего проекта для Android.
Вот ошибки

1 -

> Configure project :launcher
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

> Configure project :unityLibrary
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:checkReleaseManifest UP-TO-DATE
> Task :launcher:prepareLintJar UP-TO-DATE
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :launcher:preReleaseBuild FAILED
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
6 actionable tasks: 2 executed, 4 up-to-date

UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

2 -
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:preReleaseBuild'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
> Could not resolve :UnityAds.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :UnityAds.
> invalid end of optional part at position 6 in pattern /C:/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :UnityAdsAndroidPlugin.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :UnityAdsAndroidPlugin.
> invalid end of optional part at position 6 in pattern /C:/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 3s

UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

3 -
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_321\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.4.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"

stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:preReleaseBuild'.
> Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
> Could not resolve :UnityAds.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :UnityAds.
> invalid end of optional part at position 6 in pattern /C:/go)/Temp/gradleOut/unityLibrary/libs/[artifact](-[classifier]).[ext]
> Could not resolve :UnityAdsAndroidPlugin.
Required by:
project :launcher > project :unityLibrary
> Could not resolve :UnityAdsAndroidPlugin.
> invalid end of optional part at position 6 in pattern /C:/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 3s
]
stdout[

> Configure project :launcher
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

> Configure project :unityLibrary
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:checkReleaseManifest UP-TO-DATE
> Task :launcher:prepareLintJar UP-TO-DATE
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :launcher:preReleaseBuild FAILED
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
6 actionable tasks: 2 executed, 4 up-to-date
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at :0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <3d6d6a4a6d7c4ec2aa654b7d8f54a096>:0)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

4 -
Build completed with a result of 'Failed' in 50 seconds (50429 ms)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

5 -
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in <3d6d6a4a6d7c4ec2aa654b7d8f54a096>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <3d6d6a4a6d7c4ec2aa654b7d8f54a096>:0
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()

Перепробовал все.
Убрал все русские буквы из путей, изменял в файле плагина значения, и даже чекал видео с ютуба ОТ АРАБОВ!!! ОТ АРАБОВ, КАРЛ!!! КАК ОНИ НЕ МОГУТ ПОМОЧЬ!?
  • Вопрос задан
  • 624 просмотра
Подписаться 1 Средний Комментировать
Решения вопроса 1
freeExec
@freeExec
Участник OpenStreetMap
Твоя ошибка
Could not resolve :UnityAds.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

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

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