java.lang.IllegalArgumentException: Unable to find native library: (DEF-2436)

Hi, I have big problem with my game. After Android build when I try run it on my phone (Samsung Galaxy S6) I get

03-08 10:27:44.695 22391-22391/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.Group14.game, PID: 22391
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Group14.game/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to find native library: Run_Run_Sir!
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
at android.app.ActivityThread.access$1100(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.IllegalArgumentException: Unable to find native library: Run_Run_Sir!
at android.app.NativeActivity.onCreate(NativeActivity.java:170)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
at android.app.ActivityThread.access$1100(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Do You have any ideas what I doing wrong?

P.S. Game works perfectly on computer

I’m almost 100% sure this is caused by the exclamation mark in the project title in game.project. Would you mind trying without the exclamation mark? There is a similar issue reported for this already: DEF-2436 Apostrophe in project title breaks Android apk (DEF-2436) (Please check my answer for a workaround)

2 Likes

externalNativeBuild {
cmake {
arguments “-DANDROID_STL=c++_shared” //add this in the build.gradle

        }
    }

I’m not sure how this is a helpful post?
We use neither gradle nor cmake to build android.