get android studio -> https://redirector.gvt1.com/edgedl/android/studio/install/2020.3.1.23/android-studio-2020.3.1.23-windows.exe
set JAVA_HOME in env variables:
C:\Program Files\Java\jre1.8.0_301
Unreal Engine:
open UE_4.27\Engine\Extras\Android
run SetupAndroid.bat
connect ur android device to PC
on android device open: Developer options -> USB debugging -> ON
after that in Unreal Engine:
check if ur device appeared in device manager
open Launch Options -> Device Manager
ur android device should be on a list.
then open Project Settings -> Android
and check if button "Accept SDK License"
are gray, if not accept it by pressing the button
then change in "Android Package Name" com.(ur company name).(ur project name)
then check Android SDK tab:
in SDKconfig
all lines should be filled with actual paths, example:
Location of Android SDK: C:/Users/%username%/AppData/Local/Android/Sdk
Location of Android NDK: C:/Users/%username%/AppData/Local/Android/Sdk/ndk/23.0.7599858
Location of java: C:/Program Files/Java/jre1.8.0_301
SDK API Level: latest
NDK API Level: android-21
now u are ready to go, u can launch a game on ur android device
if u got an error
about corrupted build-tools, gradle
u must manually rename these files:
C:\Users\%username%\AppData\Local\Android\Sdk\build-tools\31.0.0
from d8.bat
to dx.bat
and
C:\Users\%username%\AppData\Local\Android\Sdk\build-tools\31.0.0\lib
from d8.jar
to dx.jar
now u can assemble ur project for ur android device and test it.