Delphi fatal exception: unable to find native library

  

I’m running over a weird fatal exception when launching my Android Application on Delphi 10 Seattle.

It doesn’t even open any Forms: the application crashes as soon as it is launched.

It looks like it can’t open com.embarcadero.firemonkey.FMXNativeActivity.

Hereby the logcat:

01-27 10:16:19.364 13040-13040/br.com.gensafedevelopment E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: br.com.gensafedevelopment, PID: 13040
java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.gensafedevelopment/com.embarcadero.firemonkey.FMXNativeActivity}: java.lang.IllegalArgumentException: Unable to find native library: Gensafe
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: Unable to find native library: Gensafe
at android.app.NativeActivity.onCreate(NativeActivity.java:171)
at com.embarcadero.firemonkey.FMXNativeActivity.onCreate(FMXNativeActivity.java:139)
at android.app.Activity.performCreate(Activity.java:5264)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
            at android.app.ActivityThread.access$800(ActivityThread.java:151)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
            at android.os.Handler.dispatchMessage(Handler.java:110)
            at android.os.Looper.loop(Looper.java:193)
            at android.app.ActivityThread.main(ActivityThread.java:5292)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
            at dalvik.system.NativeStart.main(Native Method)

This is not running on a emulator and the same code works fine in iOS.

Is it an IDE bug when generating AndroidManifest.xml? How can we fix it?

Comments are closed.