I am having trouble developing an Android app using the MobileNativeCode plugin provided on the Github repository below:
I added ‘import androidx.exifinterface.media.ExifInterface;’ to asyncAndroidFunctionLibClass.java file in order to implement a feature to toggle between portrait and landscape mode, but I failed to package the app due to the following error:
Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:254: error: package androidx.exifinterface.media does not exist
Although I managed to successfully add androidx.exifinterface.media.ExifInterface through ‘Add dependency’ in the Gradle of Intermediate folder in Android Studio and generate an app bundle or apk, the process is too cumbersome, and I would like to package the app in Unreal without any problems. Is there any specific location where files related to androidx.exifinterface.media.ExifInterface are created when adding it in Android Studio? Or is there any other way to add it in Unreal?
Another problem is that when I package the app in Development mode in Unreal, it fails to work on mobile devices, and stops with an android jni error:
D/UE4 : Assertion failed: Method != 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Launch/Private/Android/AndroidJNI.cpp] [Line: 243]
As a result, I am having difficulties developing the app because I cannot even print logs. Is there anyone who can help me with this?