AndroidNative icon indicating copy to clipboard operation
AndroidNative copied to clipboard

Where to place the java class for the final build.

Open shive1807 opened this issue 1 year ago • 1 comments

I am unable to get where to place the StringOperation.java class inside the unreal project ?

java.lang.ClassNotFoundException: Didn't find class "com/Plugins/AndroidNative/StringOperations" on path: DexPathList[[zip file "/data/app/com.YourCompany.NativeUnrealLatest-4N0HniWBYF7SOqv9OSVQeQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.YourCompany.NativeUnrealLatest-4N0HniWBYF7SOqv9OSVQeQ==/lib/arm64, /data/app/com.YourCompany.NativeUnrealLatest-4N0HniWBYF7SOqv9OSVQeQ==/base.apk!/lib/arm64-v8a, /system/lib64]]at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:169)

This is the error I am facing.

shive1807 avatar Mar 18 '24 14:03 shive1807

You should add this file within the plugin itself, here. After doing so, you should be able to successfully call that function.

Also, in some cases, it is necessary to delete the Intermediate and Binaries folders of both the project and the plugin to ensure the Java classes are up to date, as mentioned on this page.

gtreshchev avatar Apr 07 '24 15:04 gtreshchev