I am building games for android. I noticed games crashing right after installing the apk and opening it in the emulator. It worked fine in physical device.
I had encountered similar issues in older Unity version when I saw ‘Unable to initialize unity graphics’ error. This time it crashes and closes the emulator and wipes all error log from android studio logcat.
I am using default URP project switched to android platform and V7 builds turned on and nothing else on the project.
With older Unity version, default URP project worked fine with emulators. But now its not working.
I tried turning on and off a few buttons on the Unity player settings but the problem persisted across different projects. Using Unity V 6.0.31f and …32f.
Please give me a solution.
Logcat :
Process: com.UnityTechnologies.com.unity.template.urpblank, PID: 11681
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/~~0Qe9RAX8bHBsw0SnUflNlQ==/com.UnityTechnologies.com.unity.template.urpblank-F_l4jPmltFbQhw9mKpuDJw==/lib/arm64/libc++_shared.so" program alignment (4096) cannot be smaller than system page size (16384)
at java.lang.Runtime.loadLibrary0(Runtime.java:1110)
at java.lang.Runtime.loadLibrary0(Runtime.java:1032)
at java.lang.System.loadLibrary(System.java:1765)
at com.unity3d.player.UnityPlayerGameActivity.<clinit>(UnityPlayerGameActivity.java:30)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
at android.app.Instrumentation.newActivity(Instrumentation.java:1453)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4063)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4357)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2735)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8875)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:891)