9/5/2023 0 Comments Ue4 apkJstring jsString = (jstring)FJavaWrapper::CallObjectMethod(Env, FJavaWrapper::GameActivityThis, KTBridgeMethod) Ĭonst char* nativeName = Env->GetStringUTFChars(jsString, NULL) įString ResultName = FString(nativeName) Static jmethodID KTBridgeMethod = FJavaWrapper::FindMethod(Env, FJavaWrapper::GameActivit圜lassID, "AndroidThunkJava_KTBridge_Init", "()Ljava/lang/String ", bIsOptional) Public String AndroidThunkJava_KTBridge_Init() I decided to take your advice and use UPL. I’m not really sure what I’m doing wrong and can’t seem to find any useful help online. Jclass foundClass = Env->FindClass("com/google/android/gms/kt-bridge") Ībort message: 'java_vm_ext.cc:534] JNI DETECTED ERROR IN APPLICATION: JNI NewStringUTF called with pending exception : Didn't find class ".kt-bridge" on path: DexPathList,nativeLibraryDirectories=]' If (JNIEnv* Env = FAndroidApplication::GetJavaEnv()) “Android/AndroidJNI.h” and “Android/AndroidApplication.h” Now in my code I would like to get the aar and call the method “getInstance”. UATHelper: Packaging (Android (ASTC)): Updating project.properties, local.properties, and build.xml for kt-bridge-11.0.4. UATHelper: Packaging (Android (ASTC)): Extracting AAR kt-bridge-11.0.4 I also know that its properly being packaged into my apk because in my output log I’m getting: (for now I’m just using for testing purposes) I’ve gone into Unreal/Build/Android/Java/aar-imports.txt and added my aar like so:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |