3.6.2 libcocos.so三星真机崩溃

机型:samsung a11q
Exception java.lang.UnsatisfiedLinkError: dlopen failed: library “libcocos.so” not found
at java.lang.Runtime.loadLibrary0 (Runtime.java:1087)
at java.lang.Runtime.loadLibrary0 (Runtime.java:1008)
at java.lang.System.loadLibrary (System.java:1664)
at com.cocos.lib.CocosActivity.onLoadNativeLibraries (CocosActivity.java)
at com.cocos.lib.CocosActivity.onCreate (CocosActivity.java)
at com.cocos.game.AppActivity.onCreate (AppActivity.java)
at android.app.Activity.performCreate (Activity.java:8207)
at android.app.Activity.performCreate (Activity.java:8191)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3819)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4022)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2336)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:246)
at android.app.ActivityThread.main (ActivityThread.java:8653)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)

很明显,没生成so啊,你要不要重新看看编译so的

并不是,其他机型跑的很好。这是google play传回来的一个崩溃栈

I also had the same issue. What kind of article

set ndk {
Abifilter ‘X86’, ‘Abimx-V7’
}
Put the SO library under jnlibs

Is there this article like this?

我也有这个问题,在谷歌商店下载的部分oppo机型中报错
`Fatal Exception: java.lang.UnsatisfiedLinkError
dlopen failed: library “libcocos2djs.so” not found

java.lang.Runtime.loadLibrary0 (Runtime.java:1087)
java.lang.Runtime.loadLibrary0 (Runtime.java:1008)
java.lang.System.loadLibrary (System.java:1664)
org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries (Cocos2dxActivity.java:476)
org.cocos2dx.lib.Cocos2dxActivity.onCreate (Cocos2dxActivity.java:359) 但是我版本是2.4.6 当我解压这个报错的apk时,发现里面确实没有libcocos2djs.so。我打包的时候compileSdkVersion`是31。

目前发现是谷歌aab分发的时候,只保留了config.arm64_v8a.apk,然后可能因为某种原因(root?魔改?模拟器?),对应设备需要armeabi-v7a,但是谷歌没有分发给它(或者说通过第三方平台安装的包)。导致出现failed: library “libcocos2djs.so” not found和崩溃。
可以在谷歌后台,App bundle 资源管理器,查看应用版本,下载,搜索崩溃的设备,下载这个设备上的apk确认这个问题。

abi 四个全部枚举出来不久好的

挖, 3.8.0, 问题依旧.
@panda 大佬, 有人关注跟踪这个问题吗?

3.8.0也有这个问题,求解决。

找不到库,这是lib里对应架构的目录里没有so吗