Augmented Reality for UE4

Hi ,

I’ve been trying to get your plugin to work on Android but have been running into issues. I followed all of the steps in your documentation but keep getting errors when trying to to Android. Below is a snippet of the errors in the output log.

I should note that it does work when running for windows but launching to android does not.


LogPlayLevel: UnrealBuildTool: Creating makefile for AR_Mobile_Compile (project files are newer)
LogPlayLevel: UnrealBuildTool: NDK version: 19, GccVersion: 4.8
LogPlayLevel: UnrealBuildTool: Compiling Native code with NDK API 'android-19'
LogPlayLevel: UnrealBuildTool: Performing 2 actions (9 in parallel)
LogPlayLevel: UnrealBuildTool: [1/2] clang++.exe Module..cpp [armv7-es2]
LogPlayLevel: UnrealBuildTool: In file included from D:/Users/dsenter/Documents/Unreal Projects/AR_Mobile_Compile/Intermediate/Build/Android/AR_Mobile_Compile/Development//Module..cpp:6:
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\old_AndroidJNI.cpp(15,9) :  error: redefinition of 'GJavaVM'
LogPlayLevel: UnrealBuildTool: JavaVM* GJavaVM;
LogPlayLevel: UnrealBuildTool:         ^
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\AndroidJNI.cpp(15,9) :  note: previous definition is here
LogPlayLevel: UnrealBuildTool: JavaVM* GJavaVM;
LogPlayLevel: UnrealBuildTool:         ^
LogPlayLevel: UnrealBuildTool: In file included from D:/Users/dsenter/Documents/Unreal Projects/AR_Mobile_Compile/Intermediate/Build/Android/AR_Mobile_Compile/Development//Module..cpp:6:
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\old_AndroidJNI.cpp(18,31) :  error: redefinition of 'VirtualKeyboardWidget'
LogPlayLevel: UnrealBuildTool: static IVirtualKeyboardEntry *VirtualKeyboardWidget = NULL;
LogPlayLevel: UnrealBuildTool:                               ^
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\AndroidJNI.cpp(18,31) :  note: previous definition is here
LogPlayLevel: UnrealBuildTool: static IVirtualKeyboardEntry *VirtualKeyboardWidget = NULL;
LogPlayLevel: UnrealBuildTool:                               ^
LogPlayLevel: UnrealBuildTool: In file included from D:/Users/dsenter/Documents/Unreal Projects/AR_Mobile_Compile/Intermediate/Build/Android/AR_Mobile_Compile/Development//Module..cpp:6:
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\old_AndroidJNI.cpp(25,33) :  error: redefinition of 'OnActivityResultDelegate'
LogPlayLevel: UnrealBuildTool: FOnActivityResult FJavaWrapper::OnActivityResultDelegate;
LogPlayLevel: UnrealBuildTool:                                 ^
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\AndroidJNI.cpp(25,33) :  note: previous definition is here
LogPlayLevel: UnrealBuildTool: FOnActivityResult FJavaWrapper::OnActivityResultDelegate;
LogPlayLevel: UnrealBuildTool:                                 ^
LogPlayLevel: UnrealBuildTool: In file included from D:/Users/dsenter/Documents/Unreal Projects/AR_Mobile_Compile/Intermediate/Build/Android/AR_Mobile_Compile/Development//Module..cpp:6:
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\old_AndroidJNI.cpp(41,20) :  error: redefinition of 'FindClassesAndMethods'
LogPlayLevel: UnrealBuildTool: void FJavaWrapper::FindClassesAndMethods(JNIEnv* Env)
LogPlayLevel: UnrealBuildTool:                    ^
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\AndroidJNI.cpp(41,20) :  note: previous definition is here
LogPlayLevel: UnrealBuildTool: void FJavaWrapper::FindClassesAndMethods(JNIEnv* Env)
LogPlayLevel: UnrealBuildTool:                    ^
LogPlayLevel: UnrealBuildTool: In file included from D:/Users/dsenter/Documents/Unreal Projects/AR_Mobile_Compile/Intermediate/Build/Android/AR_Mobile_Compile/Development//Module..cpp:6:
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\old_AndroidJNI.cpp(103,22) :  error: redefinition of 'FindClass'
LogPlayLevel: UnrealBuildTool: jclass FJavaWrapper::FindClass(JNIEnv* Env, const ANSICHAR* ClassName, bool bIsOptional)
LogPlayLevel: UnrealBuildTool:                      ^
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\AndroidJNI.cpp(113,22) :  note: previous definition is here
LogPlayLevel: UnrealBuildTool: jclass FJavaWrapper::FindClass(JNIEnv* Env, const ANSICHAR* ClassName, bool bIsOptional)
LogPlayLevel: UnrealBuildTool:                      ^
LogPlayLevel: UnrealBuildTool: In file included from D:/Users/dsenter/Documents/Unreal Projects/AR_Mobile_Compile/Intermediate/Build/Android/AR_Mobile_Compile/Development//Module..cpp:6:
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\old_AndroidJNI.cpp(110,25) :  error: redefinition of 'FindMethod'
LogPlayLevel: UnrealBuildTool: jmethodID FJavaWrapper::FindMethod(JNIEnv* Env, jclass Class, const ANSICHAR* MethodName, const ANSICHAR* MethodSignature, bool bIsOptional)
LogPlayLevel: UnrealBuildTool:                         ^
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\AndroidJNI.cpp(120,25) :  note: previous definition is here
LogPlayLevel: UnrealBuildTool: jmethodID FJavaWrapper::FindMethod(JNIEnv* Env, jclass Class, const ANSICHAR* MethodName, const ANSICHAR* MethodSignature, bool bIsOptional)
LogPlayLevel: UnrealBuildTool:                         ^
LogPlayLevel: UnrealBuildTool: In file included from D:/Users/dsenter/Documents/Unreal Projects/AR_Mobile_Compile/Intermediate/Build/Android/AR_Mobile_Compile/Development//Module..cpp:6:
LogPlayLevel: UnrealBuildTool: D:\Users\dsenter\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\\Private\Android\old_AndroidJNI.cpp(117,25) :  error: redefinition of 'FindStaticMethod'
LogPlayLevel: UnrealBuildTool: jmethodID FJavaWrapper::FindStaticMethod(JNIEnv* Env, jclass Class, const ANSICHAR* MethodName, const ANSICHAR* MethodSignature, bool bIsOptional)
LogPlayLevel: UnrealBuildTool:                         ^