おばけスキャンの3.0を配信したいんだがUE4.26のビルドでこけまくっている

UE4も4.24以降にAndroidASDKの仕様が変わったらしく、4.25以降はNVIDIAツールは使わず、AndroidStudioでSDKを管理する仕様に変更されたようだ。
4.25以降をインストールしたら、まず、UE4とランチャーを終了してAndroidStudioをインストールする。
手順はコチラを参考にする。僕は最新版の安定版をインストールした。
でも、そのままでは以下のエラーが出た。のでそれの対応策。

LogPlayLevel: Error:   ERROR: cmd.exe failed with args /c "D:\AR2\JivaGoo 4.26\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleDebug
LogPlayLevel: Took 131.8872052s to run UnrealBuildTool.exe, ExitCode=6
LogPlayLevel: UnrealBuildTool failed. See log for more details. (C:\Users\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\UBT-JivaGoo-Android-Development.txt)
LogPlayLevel: AutomationTool exiting with ExitCode=6 (6)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 131.498220
LogPlayLevel: BUILD FAILED
PackagingResults: Error: 起動に失敗しました! Unknown Error

エラーが出まくっていまだ解決できていない。困った。

なんか直前の警告でライセンス認証がされていないでビルドに失敗したって出ている

Warning:   Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.
LogPlayLevel:   FAILURE: Build failed with an exception.
LogPlayLevel:   * What went wrong:
LogPlayLevel:   Could not determine the dependencies of task ':permission_library:compileDebugAidl'.
LogPlayLevel:   > Failed to install the following Android SDK packages as some licences have not been accepted.
LogPlayLevel:        build-tools;29.0.2 Android SDK Build-Tools 29.0.2
LogPlayLevel:     To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
LogPlayLevel:     Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
LogPlayLevel:     Using Android SDK: C:\Users\AppData\Local\Android\Sdk
LogPlayLevel:   * Try:
LogPlayLevel:   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:   * Get more help at https://help.gradle.org
LogPlayLevel:   BUILD FAILED in 26s

「このプロジェクトをビルドするには、SDK使用許諾契約に同意し、Android Studio SDKManagerを使用して不足しているコンポーネントをインストールします。」って書いてあるのでandroidStudioのSDKツールを起動してみる。するといろいろ足りてないようなのでUE4.24の時に必要だったと思われる項目をチャックしてインストール。

これでビルドできました。

コメントを残す

メールアドレスが公開されることはありません。必須項目には印がついています *

CAPTCHA


日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)