Android / ARCore does not correctly deploy with 4.21

When creating a new 4.21 Project with ARCore and deplyoy it I have severalt problems, which I’ve solved the last days, I whould share my solutions with you:

  1. In the Project Settings I can’t accept the Android SDK Licens. When packaging the Android APK with gradle it is complainning about not having accepted the SDK License.
    “Error: License not accepted. SDK License must be accepted in the …”
  2. When I package it with ANT it gets packaged and I can deploy. When having build a ARCore App it crashes on start.
    Running “adb -d logcat” gives me errors about not finding a arcore sdk c file
    “unreal engine dlopen failed: library libarcore_sdk_c.so not found”
  3. Packaging with Gradle crashes with

LogPlayLevel Error … .gradle\caches\transforms\ …

LogPlayLevel Error: error: failed linking references.

Solutions:

  1. Edit File “path\to\your\NVPACK\android-sdk-windows\licenses\android-sdk-license” - in my case there was a blank line in front of the the license id. Remove it so it only contains the license id.
    Replace your Engine/Source/Third Party/Android/package.xml with the newer one https://github.com/EpicGames/UnrealEngine/blob/4.22/Engine/Source/ThirdParty/Android/package.xml to make gradle work again
  2. You MUST package with Gradle. ARCore is not bundled with ANT.
  3. Don’t choose your latest SDK/NDK in project settings. On my machine it works fine with “android-21”

Hi,
Does that link expired?

no but you need github access to unreal engine source code and be logged in to github

I had the same problem. I found that if you have Unreal Studio plug in activated can get trouble on android package. Work form me.

Thank you so much, I was trying a entire day make this template work, and only turning off Unreal Studio Plugins worked!!! Love you Pipps <3