我创建了一个cocos2dx-3.4的android项目,但是停止运行
01-2010:05:39.264:D/dalvikvm(14924):wrongobjecttype:Lcom/lbe/security/utility/d;Landr...
01-20 10:05:39.264: D/dalvikvm(14924): wrong object type: Lcom/lbe/security/utility/d; Landroid/util/ArrayMap;
01-20 10:05:39.409: D/dalvikvm(14924): GC_FOR_ALLOC freed 409K, 13% free 3312K/3804K, paused 13ms, total 13ms
01-20 10:05:39.434: D/dalvikvm(14924): Trying to load lib /data/app-lib/org.cocos.SoulShot-1/libcocos2dcpp.so 0x41977f10
01-20 10:05:39.439: E/dalvikvm(14924): dlopen("/data/app-lib/org.cocos.SoulShot-1/libcocos2dcpp.so") failed: dlopen failed: cannot locate symbol "srand" referenced by "libcocos2dcpp.so"...
01-20 10:05:39.439: D/AndroidRuntime(14924): Shutting down VM
01-20 10:05:39.439: W/dalvikvm(14924): threadid=1: thread exiting with uncaught exception (group=0x4161aba8)
01-20 10:05:39.439: E/AndroidRuntime(14924): FATAL EXCEPTION: main
01-20 10:05:39.439: E/AndroidRuntime(14924): Process: org.cocos.SoulShot, PID: 14924
01-20 10:05:39.439: E/AndroidRuntime(14924): java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "srand" referenced by "libcocos2dcpp.so"...
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.Runtime.loadLibrary(Runtime.java:364)
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.System.loadLibrary(System.java:538)
01-20 10:05:39.439: E/AndroidRuntime(14924): at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:85)
01-20 10:05:39.439: E/AndroidRuntime(14924): at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:99)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.Activity.performCreate(Activity.java:5337)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1099)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2286)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.access$800(ActivityThread.java:138)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1235)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.os.Handler.dispatchMessage(Handler.java:102)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.os.Looper.loop(Looper.java:136)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.main(ActivityThread.java:5054)
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.reflect.Method.invokeNative(Native Method)
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.reflect.Method.invoke(Method.java:515)
01-20 10:05:39.439: E/AndroidRuntime(14924): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
01-20 10:05:39.439: E/AndroidRuntime(14924): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
01-20 10:05:39.439: E/AndroidRuntime(14924): at dalvik.system.NativeStart.main(Native Method) 展开
01-20 10:05:39.409: D/dalvikvm(14924): GC_FOR_ALLOC freed 409K, 13% free 3312K/3804K, paused 13ms, total 13ms
01-20 10:05:39.434: D/dalvikvm(14924): Trying to load lib /data/app-lib/org.cocos.SoulShot-1/libcocos2dcpp.so 0x41977f10
01-20 10:05:39.439: E/dalvikvm(14924): dlopen("/data/app-lib/org.cocos.SoulShot-1/libcocos2dcpp.so") failed: dlopen failed: cannot locate symbol "srand" referenced by "libcocos2dcpp.so"...
01-20 10:05:39.439: D/AndroidRuntime(14924): Shutting down VM
01-20 10:05:39.439: W/dalvikvm(14924): threadid=1: thread exiting with uncaught exception (group=0x4161aba8)
01-20 10:05:39.439: E/AndroidRuntime(14924): FATAL EXCEPTION: main
01-20 10:05:39.439: E/AndroidRuntime(14924): Process: org.cocos.SoulShot, PID: 14924
01-20 10:05:39.439: E/AndroidRuntime(14924): java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "srand" referenced by "libcocos2dcpp.so"...
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.Runtime.loadLibrary(Runtime.java:364)
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.System.loadLibrary(System.java:538)
01-20 10:05:39.439: E/AndroidRuntime(14924): at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:85)
01-20 10:05:39.439: E/AndroidRuntime(14924): at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:99)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.Activity.performCreate(Activity.java:5337)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1099)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2286)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.access$800(ActivityThread.java:138)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1235)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.os.Handler.dispatchMessage(Handler.java:102)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.os.Looper.loop(Looper.java:136)
01-20 10:05:39.439: E/AndroidRuntime(14924): at android.app.ActivityThread.main(ActivityThread.java:5054)
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.reflect.Method.invokeNative(Native Method)
01-20 10:05:39.439: E/AndroidRuntime(14924): at java.lang.reflect.Method.invoke(Method.java:515)
01-20 10:05:39.439: E/AndroidRuntime(14924): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
01-20 10:05:39.439: E/AndroidRuntime(14924): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
01-20 10:05:39.439: E/AndroidRuntime(14924): at dalvik.system.NativeStart.main(Native Method) 展开
4个回答
展开全部
在Appication.mk里第一行加入 APP_PLATFORM := android-19 (我的就是这个问题),不行的话再试试 改成 APP_PLATFORM := android-9 再不行就多换几个ndk版本试试这个方法。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
再eclipse安装Android 4.4.2 SDK, 右键点击项目-》properties->Android->Project Build Target->Android 4.4.2
重新编译
重新编译
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
请问楼主解决问题了没有 我也遇到了这个问题
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询