This is how I got this to work:
Android setup
Setup your device: go to settings/system/about phone - click on “Build number a number of times until you get a popup saying developer mode enabled
Go into developer options and enable USB debugging.
Make sure your device is fully updated
Go to the Play Store and download the latest version of ARCore
Windows PC setup (if you have a fast system drive and a second drive on your PC install the following on the second drive)
Sign Up to and install Epic launcher -[ Ссылка ]
Install Visual Studio Community 2019 - [ Ссылка ]
When the installer loads change install location to your second drive
Under workloads/Mobile & Gaming
Click Mobile development with .net
Game development with C++, on Right hand side make sure to click “Android IDE support for Unreal Engine”
If you are planning on developing for Unity you can click on “Game development with Unity”
You might get a pop up asking if you want to continue with your choice for install drive - you do - Click OK
Restart your PC
Launch Visual Studio and sign in with your Microsoft account - this is needed to activate the plugins
Launch and sign in to the Epic Launcher
Install latest version of Unreal Engine
Open the install folder of where you installed Unreal Engine eg. E:\Program Files\Epic Games\UE_4.22
Go to Engine/Extras/AndroidWorks/Win64 and open the CodeWorksforAndroid app
Leave the directory’s at default
On the Installation Configuration page click No, disable usage collection
Click Next
Install the “Standard” components (you may need to go back to this later to install components for specific devices)
Accept all T&C
Once install is complete you will be prompted to restart the PC
Launch Unreal Engine
You may get some pop-ups when launching, accept all.
Open a “New Project/Blueprint” - Handheld AR template
Change “Desktop / Console” to “Mobile / Tablet”
Change “Maximum Quality” to “Scalable 3D or 2D”
Change “With starter content” to “No starter content”
Change Folder by clicking on the … button beside “C:\Users\*************\Documents\Unreal Projects” to the location where you want your project to be stored
Change the name to the name of your project
Go to Settings/Project Settings
On the Left hand side, scroll down to Platforms and click Android
Click on “Configure Now” button, Click on “Accept SDK Licence” button
Scroll down to “Google Play Services” click “configure now”
On the Right hand side scroll down to Android SDK
The following locations were set in point 5b above
Set Android SDK to C:\NVPACK\android-sdk-windows
Set Android NDK to C:\NVPACK\android-ndk-r14b
Set ANT to C:\NVPACK\apache-ant-1.8.2
Set Java to C:\NVPACK\jdk1.8.0_77
Go to File/Save All
Plug in your Android device into your PC
On your device you will be prompted to Allow USB Debugging, accept this.
We need to check that the PC has detected your device
Open the search window
Type “cmd” , click “Command Prompt”
Type “adb devices” and hit return
Your device should be listed
Close the command prompt window
Back in Unreal Engine
There can be an issue with the Datasmith plugin if you have it installed, we need to unload these plugins
Go to Settings/Plugins
Search for “Datasmith”
Disable all plugins listed
Restart as prompted
Build and deploy
Click the build button
click the drop down triangle beside the launch button
Your device should be listed
Click on the device name to build and launch on your device
Save selected to begin the launch process.
Click on “Show Output Log” to see a readout of the build process
Accept any pop ups from Unreal Engine
First time running of the build process will take longer than subsequent builds
When the dialog at the bottom right of the screen says “Running Android” open your device and click the “Start AR” button to launch
You can now unplug your device from your PC
The app will need access to your camera, allow this access when prompted
Ещё видео!