Q
Q
Qerriom Magnelius2022-04-19 21:00:51
C++ / C#
Qerriom Magnelius, 2022-04-19 21:00:51

Building errors in Unity3D. Too hard for me, tried everything! There are options?

Greetings! That's horrible! For about two days, I tried to solve 4 errors that occurred when building my Android project.
Here are the errors

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:
> 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:
> 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)
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)
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 ()

Tried everything.
Removed all Russian letters from the paths, changed the values ​​in the plugin file, and even checked the YouTube video FROM ARABOV!!! FROM THE ARAB, CARL!!! HOW CAN'T THEY HELP!?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-04-19
@freeExec

Your mistake
Could not resolve :UnityAds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question