UE 5.3 Mobile Developer get In-App purchases working without crash on Android

Hi,
you need use source code build of unreal engine, and change the file
Engine/Source/Runtime/Core/Private/Android/AndroidJavaEnv.cpp
in line 282

FScopedJavaObject FJavaHelper::ToJavaStringArray(JNIEnv* Env, const TArray& UnrealStrings)
{

// Change from
// jclass JavaStringClass = AndroidJavaEnv::FindJavaClass(“java/lang/String”);
// to
jclass JavaStringClass = Env->FindClass(“java/lang/String”);

1 Like