Description

The jni functions in GoogleARCoreAndroidHelper.cpp are not correctly exported, when we tried to build a Test project it failed with this exception:

 java.lang.UnsatisfiedLinkError: No implementation found for void com.google.arcore.unreal.GoogleARCoreJavaHelper.onApplicationCreated() (tried Java_com_google_arcore_unreal_GoogleARCoreJavaHelper_onApplicationCreated and Java_com_google_arcore_unreal_GoogleARCoreJavaHelper_onApplicationCreated__)

Adding JNI_METHOD in front of them fixed the issue on our branch. This is an easy fix, might be good for 4.21

Steps to Reproduce
  1. Create android project using GoogleARCore
  2. Build a Test configuration or other config where it doesn't export symbols by default
  3. Executable will fail to find the GoogleARCoreJavaHelper functions

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-66052 in the post.

0
Login to Vote

Fixed
ComponentUE - Platform - XR
Affects Versions4.204.21
Target Fix4.21
Fix Commit4529035
Main Commit4551290
Release Commit4529035
CreatedOct 31, 2018
ResolvedOct 31, 2018
UpdatedSep 16, 2019
View Jira Issue