As the title states, I’ve been trying to mess around with ARCore but have had very little luck getting a project to Package with the ARCore Plugin enabled. I downloaded the Tappy Chicken demo project, updated it to 4.18, and was able to package it no problem. Below you can find the steps I took trying to set up the ARCore project.
- Create a new, blank Mobile/Tablet
Scalable 3D or 2D project without
- Go to the Plugins window and enable the “Google ARCore” plugin
- Create a new Blueprint Pawn and add a camera
- Select the camera and scroll down to PostProcess Materials and add the GoogleARCorePassthroughCamera material
- Compile and save
- Create a new blueprint gamemode class and set the default pawn to the blueprint we just created
- Compile and save
- Go to File > New Level and create a new empty level
- Save the level
- Add the pawn to the level at 0,0,0, and set “Auto Possess Player” to “Player 0”
- Add a directional light to the level
- Go to Project Settings and check “Start in AR”
- Go to Maps & Modes and set the gamemode to the mode we created, and set the Startup and Default maps to the level we created
- Go to Android and hit “Configure Now”
From there, you can package the project for Android (I chose ETC2) and, if your experience is anything like mine, it will conclude with “PackagingResults: Error: Unknown Error”
I’ve posted the whole UAT_Log.txt [HERE] for your viewing pleasure.
I think the area of importance is at the end:
====9/26/2017 11:22:14 AM====PERFORMING FINAL APK PACKAGE OPERATION================================================ Fixing minSdkVersion; NDK level above 19 requires minSdkVersion of 21 (arch=armv7) Creating rungradle.bat to work around commandline length limit (using unused drive letter Y:) Making .apk with Gradle... Observed package id 'build-tools;25.0.3' in inconsistent location 'D:\NVPACK\android-sdk-windows\build-tools\android-7.1.1' (Expected 'D:\NVPACK\android-sdk-windows\build-tools\25.0.3') Observed package id 'build-tools;25.0.3' in inconsistent location 'D:\NVPACK\android-sdk-windows\build-tools\android-7.1.1' (Expected 'D:\NVPACK\android-sdk-windows\build-tools\25.0.3') Incremental java compilation is an incubating feature. Observed package id 'build-tools;25.0.3' in inconsistent location 'D:\NVPACK\android-sdk-windows\build-tools\android-7.1.1' (Expected 'D:\NVPACK\android-sdk-windows\build-tools\25.0.3') File C:\Users\Workstation 2\.android\repositories.cfg could not be loaded. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugApkCopy'. > Could not find com.google.tango:lighting_estimation:0.0.0. Required by: :app:unspecified > Could not find com.google.tango:tango_java_lib:0.0.0. Required by: :app:unspecified * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 23.789 secs ERROR: cmd.exe failed with args /c "D:\Perforce\ARTest\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug (see C:\Users\Workstation 2\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace) AutomationTool exiting with ExitCode=1 (Error_Unknown) BUILD FAILED PackagingResults: Error: Unknown Error
You can also see my SDK setup below, though I doubt that’s the issue.
I’ll be honest, I’m kinda flying blind here with all this ARCore stuff. My whole workflow is copied form an ARKit post in hopes that the process is more and less the same (AR unification and all that jazz). I’d love any feedback that could steer me in the right direction.
EDIT: Checked again on Preview 2 and the issue persists.