I’m using APL and trying to use a class from Java to C++.
In the XML File I have:
<gameActivityClassAdditions>
<insert>
class Test extends TestListener{
/* class code */
}
</insert>
</gameActivityClassAdditions>
In the C++ side I have:
jclass jTestClass = FAndroidApplication::FindJavaClass("Test");
The app crashes with the following error:
04-18 14:59:07.220 13660 13774 W System.err: java.lang.ClassNotFoundException: Didn't find class "Test" on path: DexPathList[[zip file "/data/app/com.company.TestProject-1/base.apk"],nativeLibraryDirectories=[/data/app/com.company.TestProject-1/lib/arm, /data/app/com.company.TestProject-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
04-18 14:59:07.222 13660 13774 W System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
04-18 14:59:07.248 13660 13774 D UE4 : [2018.04.18-18.59.07:248][ 0]Assertion failed: false && "Java JNI call failed with an exception." [File:D:\Build\++UE4+Release-4.19+Compile\Sync\Engine\Source\Runtime\Core\Private\Android\AndroidJavaEnv.cpp] [Line: 197]