ошибка компиляции apk

Программирование для iPhone & Android

ошибка компиляции apk

Сообщение shept 15 ноя 2022, 22:15

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\пк\My project\Library\Bee\Android\Prj\Mono2x\Gradle\launcher\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':launcher'.
> Failed to apply plugin [id 'com.android.internal.application']
> Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.

* 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
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

0x00007ff6be279f0d (Unity) StackWalker::GetCurrentCallstack
0x00007ff6be280be9 (Unity) StackWalker::ShowCallstack
0x00007ff6bf1e7a83 (Unity) GetStacktrace
0x00007ff6bf8862fd (Unity) DebugStringToFile
0x00007ff6bd33a172 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000019db9e92e83 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000019db9e92d9b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000019db9e92ae0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000019df0c93025 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x0000019df0c92d33 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x0000019db9e88503 (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x0000019dc1342733 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
0x0000019dc0e4ba63 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x0000019dc0e4b178 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x0000019dc0e4b4a5 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007fffb05bfe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007fffb04fe764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007fffb04fe8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff6be19e904 (Unity) scripting_method_invoke
0x00007ff6be17e1a4 (Unity) ScriptingInvocation::Invoke
0x00007ff6bfbf88e1 (Unity) CallMono
0x00007ff6bfc00b97 (Unity) PostprocessPlayer
0x00007ff6bfbfb79f (Unity) DoBuildPlayer_PostBuild
0x00007ff6bfbf976e (Unity) DoBuildPlayer
0x00007ff6bfbed86d (Unity) BuildPlayer
0x00007ff6bda771d6 (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff6bd7f6280 (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x0000019db6769417 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
0x0000019db6768bb3 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x0000019db6764b63 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000019db87ca043 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x0000019db87b9eb3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x0000019db67a4d33 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x0000019b103a6b6a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x0000019b103a6983 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
0x0000019b1039670b (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x0000019d917296cf (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x0000019b1037a92b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x0000019d9572fbbb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x0000019d9572fa23 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x0000019d9572f56b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x0000019d9572f423 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x0000019d8f11857b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x0000019d8f0ff178 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x0000019d9572c903 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000019d8f0fd38e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x0000019d8f0fce8b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000019d8f103c8b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x0000019d8f101fd3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x0000019d8f101f0b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x0000019d8f0fd113 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000019d8f0fc7c3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x0000019d8f0fc63b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x0000019d916e638b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000019d916e5e33 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x0000019d916e5bef (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x0000019d916e5b0b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x0000019d916e595d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x0000019d916e5a16 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007fffb05bfe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007fffb04fe764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007fffb04fe8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff6be19e904 (Unity) scripting_method_invoke
0x00007ff6be17e1a4 (Unity) ScriptingInvocation::Invoke
0x00007ff6be178db5 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff6be2c2c8a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff6beccbc38 (Unity) GUIView::ProcessRetainedMode
0x00007ff6bf217fdb (Unity) GUIView::OnInputEvent
0x00007ff6beccba4a (Unity) GUIView::ProcessInputEvent
0x00007ff6bf218fab (Unity) GUIView::ProcessEventMessages
0x00007ff6bf212b7f (Unity) GUIView::GUIViewWndProc
0x00007ffff118e858 (USER32) CallWindowProcW
0x00007ffff118e299 (USER32) DispatchMessageW
0x00007ff6bf1edaa3 (Unity) MainMessageLoop
0x00007ff6bf1f24cb (Unity) WinMain
0x00007ff6c05934be (Unity) __scrt_common_main_seh
0x00007ffff25874b4 (KERNEL32) BaseThreadInitThunk
0x00007ffff31826a1 (ntdll) RtlUserThreadStart



другое:


CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
USERDOMAIN = DESKTOP-O3M48I9
ProgramFiles = C:\Program Files
TMP = C:\Users\7349~1\AppData\Local\Temp
PROCESSOR_ARCHITECTURE = AMD64
PROCESSOR_REVISION = 9e0a
OS = Windows_NT
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_4472_MVRECLDKNEBZYFMZ
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
ProgramW6432 = C:\Program Files
USERPROFILE = C:\Users\пк
JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
CommonProgramFiles = C:\Program Files\Common Files
DriverData = C:\Windows\System32\Drivers\DriverData
ComSpec = C:\WINDOWS\system32\cmd.exe
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
USERNAME = пк
NUMBER_OF_PROCESSORS = 4
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
BURST_ANDROID_MIN_API_LEVEL = 22
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
TEMP = C:\Users\7349~1\AppData\Local\Temp
Path = C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Users\пк\AppData\Local\Microsoft\WindowsApps;C:\Users\пк\AppData\Local\GitHubDesktop\bin
COMPUTERNAME = DESKTOP-O3M48I9
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
ALLUSERSPROFILE = C:\ProgramData
SystemDrive = C:
windir = C:\WINDOWS
FPS_BROWSER_USER_PROFILE_STRING = Default
ZES_ENABLE_SYSMAN = 1
PUBLIC = C:\Users\Public
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
APPDATA = C:\Users\пк\AppData\Roaming
OneDrive = C:\Users\пк\OneDrive
PROCESSOR_LEVEL = 6
CommonProgramW6432 = C:\Program Files\Common Files
ProgramFiles(x86) = C:\Program Files (x86)
SystemRoot = C:\WINDOWS
SESSIONNAME = Console
LOGONSERVER = \\DESKTOP-O3M48I9
LOCALAPPDATA = C:\Users\пк\AppData\Local
HOMEPATH = \Users\пк
HOMEDRIVE = C:
USERDOMAIN_ROAMINGPROFILE = DESKTOP-O3M48I9
ProgramData = C:\ProgramData
ORIGINAL_XDG_CURRENT_DESKTOP = undefined


stderr[

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\пк\My project\Library\Bee\Android\Prj\Mono2x\Gradle\launcher\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':launcher'.
> Failed to apply plugin [id 'com.android.internal.application']
> Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.

* 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
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[

]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <b8958c706cdd4a7fa97745ad82493d62>: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 <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <b8958c706cdd4a7fa97745ad82493d62>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 <dc1a47a5816e4be7bc6817ee4d339e75>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
shept
UNец
 
Сообщения: 1
Зарегистрирован: 15 ноя 2022, 22:05

Re: ошибка компиляции apk

Сообщение DbIMok 16 ноя 2022, 01:09

Your project path contains non-ASCII characters

C:\Users\пк\

в идеале нужно завести английского пользователя и делать все под ним. или можно попробовать переместить проект в C:\Work, но может где-то в другом месте из-за русского поломаться
правильный вопрос - половина ответа. учитесь формулировать вопросы понятно.
Новости > _Telegram чат @unity3d_ru (11.6k/4.8k online) > _Telegram канал @unity_news (4.6k подписчиков) > Телеграм тема > "Спасибо"
Аватара пользователя
DbIMok
Адепт
 
Сообщения: 6372
Зарегистрирован: 31 июл 2009, 14:05


Вернуться в iPhone & Android

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3


cron