LoginSignup
0
0

More than 1 year has passed since last update.

[UE4] Android Build-tool 31.0.0 でパッケージが出来ない件

Last updated at Posted at 2021-08-26

公式ドキュメント通りAndroid向けのパッケージ作成のためのセットアップを行って、いざビルドするとこんな感じのエラーがでることがあります。

UATHelper: パッケージ化 (Android (ASTC)):   Build-tool 31.0.0 is missing DX at C:\Users\wanko\AppData\Local\Android\Sdk\build-tools\31.0.0\dx.bat
UATHelper: パッケージ化 (Android (ASTC)):   
UATHelper: パッケージ化 (Android (ASTC)):   FAILURE: Build failed with an exception.
UATHelper: パッケージ化 (Android (ASTC)):   
UATHelper: パッケージ化 (Android (ASTC)):   * What went wrong:
UATHelper: パッケージ化 (Android (ASTC)):   Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
UATHelper: パッケージ化 (Android (ASTC)):   > Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

Android Build-tool 31.0.0が壊れているようです。。。:crying_cat_face:

修正方法

この問題を修正するにはBuild-Tool 31.0.0をアンインストールして正しく利用できるバージョンをインストールするのが簡単です。

Android Studioを立ち上げてSDKManagerを開く

android studio startup

Build-Tool 31.0.0をアンインストールし適切なバージョンをインストール

SDK Tools > 右下の Show Package Details にチェック > 中央のリストから 31.0.0 を削除し、お好みのバージョンを選択する > OKを押してインストール

android studio sdk manager

リンク

answerhub内の同じ問題に関するスレッド
https://answers.unrealengine.com/questions/867231/error-cmdexe-failed-with-args-1.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0