2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

UE4.25以降のAndroidビルド環境の共存

Posted at

CodeWorks for AndroidとAndroid Studioのパスの共存

環境によって異なるかもしれませんが、
プロジェクト設定>AndroidSDKのJDKやNDKのパスを上書きすると、
C:¥Users¥[User]¥AppData¥Local¥Unreal Engine¥Engine¥Config¥UserEngine.ini
というファイルが作成されて、このファイルが優先されて全てのエンジンの設定として共有されてしまいます。
なので、これを作成しないようにして(作られたら削除)、エンジンごとにパスを設定するようにしなければなりません。

BaseEngine.iniによる書き換え

他の設定ファイルでも可能かもしれませんが、私はエンジンのBaseEngine.iniをそれぞれ書き換えました。
公式のページには"JDKPath"となってましたが、ソースを見ても"JavaPath"となっていたので、そのように設定しました。

[エンジンインストール先]¥UE_4.24¥Engine¥Config¥BaseEngine.ini
[/Script/AndroidPlatformEditor.AndroidSDKSettings]
SDKPath = (Path="C:/NVPACK2/android-sdk-windows")
NDKPath = (Path="C:/NVPACK2/android-ndk-r14b")
JavaPath = (Path="C:/NVPACK2/jdk1.8.0_77")
SDKAPILevel=latest
NDKAPILevel=android-19
[エンジンインストール先]¥UE_4.25¥Engine¥Config¥BaseEngine.ini
[/Script/AndroidPlatformEditor.AndroidSDKSettings]
SDKPath = (Path="C:/Users/[User]/AppData/Local/Android/Sdk")
NDKPath = (Path="C:/Users/[User]/AppData/Local/Android/Sdk/ndk/21.1.6352462")
JavaPath = (Path="C:/Program Files/Android/Android Studio/jre")
SDKAPILevel=matchndk
NDKAPILevel=latest
2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?