机型: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也有这个问题,求解决。
找不到库,这是lib里对应架构的目录里没有so吗
我也是报的 OPPO 机子,3.8.6 了,还是有这个问题。
3.7.2也是有这问题 ,好久了, armeabi-v7a、arm64-v8a、x86、x86_64 4个架构都加了,打出的包也有,不知道这个挂了咋来的
373 也有这个问题。 firebase后台收到这类报错
这个是谷■上架平台的一个优化策略 你上架的时候里面包含了多个so文件 他会根据机型里面只放一个so文件要解决这个问题你可以把这个so放在其他资源目录 运行程序的时候自己再判断使用哪个so再动态加载