# Android向けのクイック起動が:app:compileDebugJavaWithJavacに起因して失敗する

**URL:** <https://forums.unrealengine.com/t/android-compiledebugjavawithjavac/1215845>\
**Category:** 日本語 (Japanese)\
**Tags:** development, Mobile, unreal-engine, Platform, Android, question\
**Created:** [June 30, 2023, 9:44pm UTC](https://forums.unrealengine.com/t/android-compiledebugjavawithjavac/1215845 "2023-06-30T21:44:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SK1986Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SK1986Dev](https://forums.unrealengine.com/u/SK1986Dev)\
**Post date:** [June 30, 2023, 9:44pm UTC](https://forums.unrealengine.com/t/android-compiledebugjavawithjavac/1215845/1 "2023-06-30T21:44:03Z")

</div>

Android向けのクイック起動およびパッケージ化ができず困っています。解決策をご教示ください。

状況  
公式ドキュメントの以下手順をすべて実施  
[https://docs.unrealengine.com/5.2/ja/getting-started-and-setup-for-android-projects-in-unreal-engine/](https://docs.unrealengine.com/5.2/ja/getting-started-and-setup-for-android-projects-in-unreal-engine/)  
・Android SDK および NDK を設定する  
・開発用 Android デバイスの設定  
・Android クイック スタート

Android クイック スタート「5 - Android デバイスを起動する」を実施すると、下記のエラーになりデバイスでの起動ができない  
「6 - Android ビルドをパッケージ化する」を実施しても同じエラーとなる。

ソフトバージョン  
Unreal Engine 5.2.1（5.1.1で試しても同様の症状）  
Android Studio 4.0  
Visual Studio2022

デバイス  
Xiaomi Pocophone f1  
Androidバージョン 10 QKQ1.190828.002

アウトプットログのエラー内容  
LogPlayLevel: UAT: \> Task :app:compileDebugJavaWithJavac FAILED  
LogPlayLevel: UAT:  
LogPlayLevel: UAT: FAILURE: Build failed with an exception.  
LogPlayLevel: UAT:  
LogPlayLevel: UAT: \* What went wrong:  
LogPlayLevel: UAT: Execution failed for task ‘:app:compileDebugJavaWithJavac’.  
LogPlayLevel: UAT: \> Compilation failed; see the compiler error output for details.  
LogPlayLevel: UAT:  
LogPlayLevel: UAT: \* Try:  
LogPlayLevel: UAT: 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.  
LogPlayLevel: UAT:  
LogPlayLevel: UAT: \* Get more help at [https://help.gradle.org](https://help.gradle.org)  
LogPlayLevel: UAT:  
LogPlayLevel: UAT: BUILD FAILED in 27s  
LogPlayLevel: UAT: 32 actionable tasks: 1 executed, 31 up-to-date  
LogPlayLevel: Error: UAT: ERROR: cmd.exe failed with args /c “D:\UnrealProjects\MyProject\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug  
LogPlayLevel: UAT: (see C:\Users\SK\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.2\Log.txt for full exception trace)  
LogPlayLevel: UAT: AutomationTool executed for 0h 1m 31s  
LogPlayLevel: UAT: AutomationTool exiting with ExitCode=1 (Error\_Unknown)  
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 57.378980  
LogPlayLevel: UAT: BUILD FAILED  
PackagingResults: Error: 起動に失敗しました！ Unknown Error

Log.txtエラー内容

> Task :app:compileDebugJavaWithJavac  
> The following annotation processors are not incremental: lifecycle-compiler-2.0.0.jar (androidx.lifecycle:lifecycle-compiler:2.0.0).  
> Make sure all annotation processors are incremental to improve your build speed.  
> Z:\app\src\main\java\com\epicgames\unreal\GameActivity.java:195: �G���[: �V���{�����������܂���  
> import com.epicgames.unreal.DownloadShim;  
> ^  
> �V���{��: �N���X DownloadShim  
> �ꏊ: �p�b�P�[�W com.epicgames.unreal

�G���[1��

> Task :app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:app:compileDebugJavaWithJavac’.

> Compilation failed; see the compiler error output for details.

- 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](https://help.gradle.org)

# BUILD FAILED in 27s 32 actionable tasks: 1 executed, 31 up-to-date

ERROR: cmd.exe failed with args /c “D:\UnrealProjects\MyProject\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug  
(see C:\Users\SK\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.2\Log.txt for full exception trace)

# BuildException: cmd.exe failed with args /c “D:\UnrealProjects\MyProject\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug at UnrealBuildTool.UEDeployAndroid.RunCommandLineProgramWithExceptionAndFiltering(String WorkingDirectory, String Command, String Params, ILogger Logger, String OverrideDesc, Boolean bUseShellExecute) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:line 1879 at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, TargetType InTargetType, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, UnrealTargetConfiguration Configuration, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Boolean bDisallowExternalFilesDir, Boolean bSkipGradleBuild) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:line 4908 at UnrealBuildTool.UEDeployAndroid.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, DirectoryReference ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, UnrealTargetConfiguration Configuration, Boolean bIsDataDeploy, Boolean bSkipGradleBuild) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:line 5507 at AndroidPlatform.DeployAndroidFileServer(ProjectParams Params, DeploymentContext SC, String AFSToken) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs:line 2340 at AndroidPlatform.Deploy(ProjectParams Params, DeploymentContext SC) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Android\AndroidPlatform.Automation.cs:line 3445 at AutomationScripts.Project.Deploy(ProjectParams Params) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\DeployCommand.Automation.cs:line 57 at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 225 at BuildCookRun.ExecuteBuild() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 42 at AutomationTool.BuildCommand.Execute() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 344 at AutomationTool.BuildCommand.ExecuteAsync() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 353 at AutomationTool.Automation.ExecuteAsync(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 257 at AutomationTool.Automation.ProcessAsync(ParsedCommandLine AutomationToolCommandLine, StartupTraceListener StartupListener, HashSet`1 ScriptModuleAssemblies) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 156

AutomationTool executed for 0h 1m 31s  
AutomationTool exiting with ExitCode=1 (Error\_Unknown)

よろしくお願いいたします。
