UE4.27.2 Android development environment configuration

Unreal official document link: https://docs.unrealengine.com/4.27/zh-CN/SharingAndReleasing/Mobile/Android/AndroidSDKRequirements/

Unreal 4.27 configuration Android environment software requirements:

Please ensure that the UEAndroid platform components have been installed and the versions of Android Studio and VisualStudio meet the requirements.

1. Install Java se8.0

Download link: https://www.oracle.com/java/technologies/downloads/archive/

I chose the 8u211 version here, and I should choose either of the two 8.0 versions. After downloading, the fool-like installation is fine.

After the installation is complete, you can check whether the java environment is installed successfully in the terminal: win+R to open the terminal, enter java -version

2. Install Android Studio 4.0

Download the installation package from the Android official website: Android Studio Download File Archive | Android Developers | Android Developers

 

Download the Android Studio4.0 installation package and install it. The installation path is strongly recommended to keep the default path.

 Just click "Cancel"

After installation, select Configure-SDK Manager

 Select Android 10.0+ 30, remove all other options

Select SDK Tools corresponding to 30.0.3, and remove other options 

 After the selection is complete, click the Apply button and select Accept -Next to install

After the Android SDK is installed, enter in the terminal: adb to test whether the SDK is installed successfully. If there is no corresponding version information, you need to check whether the environment variables are configured correctly. There are many tutorials on Android environment variable configuration, so I won’t explain them here.

  

Find the SetupAndroid.bat file in the Unreal installation path: C:/UE_4.27\Engine\Extras\Android

 Right-click to edit the SetupAndroid.bat file, and change all the statements containing "set SDKMANAGER" in the text to:

set SDKMANAGER=%STUDIO_SDK_PATH%\cmdline-tools\8.0\bin\sdkmanager.bat

Note that there is a pit in the UE official website document. If the bat ends correctly, there should be no "", but the official website document has it, so be sure to delete it.

After modification:

 After all the settings are completed, you need to restart the computer to complete the settings;

So far, the configuration of UE4.27 Android development environment is completed, and then set the UE parameters, and carry out package compilation test

 

 

Congratulations on successful compilation! Hope you all get it done. 

Guess you like

Origin blog.csdn.net/Abel02/article/details/129959197