java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "srand" referenced by "libcocos2dcpp.so"...错误解决

在cocos2d-x 3.5中进行开发的时候,Android代码的编译可能会碰到如下错误:
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "srand" referenced by "libcocos2dcpp.so"...

解决这个问题的办法之一就是把ndk版本从r10d降为r9d,不过这并不是推荐的方法,因为r9d对C++ 11的正则表达式支持不够,以及一些其它的原因。

解决这个问题的另一个办法就是下载Android SDK的API 19的SDK包,然后新建的项目应该就不会报这个错误了。

时间: 2024-12-22 13:17:10

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "srand" referenced by "libcocos2dcpp.so"...错误解决的相关文章

java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/xxx/lib/arm/liblame.so: has text relocations

最近在写本地录音转码过程中引入了liblame.so,我这边用了不同系统版本的手机测试本地录音都没有出现问题,但是有一天,同事在测试的时候,出现了以下错误: 09-13 17:32:29.140 26874-27362/com.axxn.xx E/linker: /data/app/com.axxn.xx-2/lib/arm/liblame.so: has text relocations 09-13 17:32:29.192 26874-27362/com.axxn.xx E/AndroidR

React java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.edaixi.activity/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.edaixi.activity, PID: 3659 at java.lang.Runtime.load0(Runtime.java:897) at java.lang.System.load(System.java:1505) at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(Unknown Source) at com.

Android JNI之——UnsatisfiedLinkError errordlopen failed: cannot locate symbol "rand"

转载请注明出处:http://blog.csdn.net/l1028386804/article/details/46593083 E/dalvikvm(19498): dlopen("/data/app-lib/com.mystylinglounge.salonluatest-2/libcocos2dlua.so") failed: dlopen failed: cannot locate symbol "rand" referenced by "lib

[转]NDK编译库运行时报dlopen failed: cannot locate symbol "__exidx_end" 解决办法

原文链接:http://blog.csdn.net/acm2008/article/details/41040015 当用NDK编译的库在运行加载时报如下错: dlopen("/data/data/xxx.xxx.xxx/lib/libxxx.so") failed: dlopen failed: cannot locate symbol "__exidx_end" referenced by "libxxx.so"... 解决办法如下: 在你报

NDK编译库运行时报dlopen failed: cannot locate symbol "__exidx_end" 解决办法

当用NDK编译的库在运行加载时报如下错: dlopen("/data/data/xxx.xxx.xxx/lib/libxxx.so") failed: dlopen failed: cannot locate symbol "__exidx_end" referenced by "libxxx.so"... 解决办法如下: 在你报错的库libxxx.so的编译脚本Android.mk请加上:LOCAL_LDFLAGS += -fuse-ld=bf

NDK编译库执行时报dlopen failed: cannot locate symbol "__exidx_end" 解决的方法

当用NDK编译的库在执行载入时报例如以下错: dlopen("/data/data/xxx.xxx.xxx/lib/libxxx.so") failed: dlopen failed: cannot locate symbol "__exidx_end" referenced by "libxxx.so"... 解决的方法例如以下: 在你报错的库libxxx.so的编译脚本Android.mk请加上:LOCAL_LDFLAGS += -fuse-

cannot locate symbol "atof" referenced by错误分析

ndk从r8升级到r10后, 使用eclipse编译出来的so库报错了,加载库的时候报错cannot locate symbol "atof" referenced by 原因:Android的stdlib.h中atof是内联的解决方法:将所有的atof改成strtod示例代码: char *strpi = "3.1415"; double dpi; dpi = atof(strpi); 修改为: dpi = strtod(strpi, NULL); 参考自:htt

Error: java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path

Error Message When compiling or executing a Java application that uses the ArcObjects Java API, the following error is returned: java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path Cause The PATH variable does not include a directory which

java.lang.UnsatisfiedLinkError: 包名.方法名([BLjava

Tomcat启动时,输出如下错误信息: 24-May-2015 18:27:39.057 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catal