JiXianWanMei999 2014-03-02 02:38 采纳率: 33.3%
浏览 8034
已采纳

android cocos2dx环境搭建好以后,运行hellocpp出现了如下错误

03-02 16:51:40.923: W/dalvikvm(6716): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/cocos2dx/hellocpp/HelloCpp;
03-02 16:51:40.923: W/dalvikvm(6716): Class init failed in newInstance call (Lorg/cocos2dx/hellocpp/HelloCpp;)
03-02 16:51:40.923: D/AndroidRuntime(6716): Shutting down VM
03-02 16:51:40.923: W/dalvikvm(6716): threadid=1: thread exiting with uncaught exception (group=0x4139eac8)
03-02 16:51:40.923: E/AndroidRuntime(6716): FATAL EXCEPTION: main
03-02 16:51:40.923: E/AndroidRuntime(6716): java.lang.ExceptionInInitializerError
03-02 16:51:40.923: E/AndroidRuntime(6716): at java.lang.Class.newInstanceImpl(Native Method)
03-02 16:51:40.923: E/AndroidRuntime(6716): at java.lang.Class.newInstance(Class.java:1319)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.app.Instrumentation.newActivity(Instrumentation.java:1071)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2295)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.app.ActivityThread.access$700(ActivityThread.java:150)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.os.Handler.dispatchMessage(Handler.java:99)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.os.Looper.loop(Looper.java:137)
03-02 16:51:40.923: E/AndroidRuntime(6716): at android.app.ActivityThread.main(ActivityThread.java:5279)
03-02 16:51:40.923: E/AndroidRuntime(6716): at java.lang.reflect.Method.invokeNative(Native Method)
03-02 16:51:40.923: E/AndroidRuntime(6716): at java.lang.reflect.Method.invoke(Method.java:511)
03-02 16:51:40.923: E/AndroidRuntime(6716): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
03-02 16:51:40.923: E/AndroidRuntime(6716): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
03-02 16:51:40.923: E/AndroidRuntime(6716): at dalvik.system.NativeStart.main(Native Method)
03-02 16:51:40.923: E/AndroidRuntime(6716): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load hellocpp from loader dalvik.system.PathClassLoader[dexPath=/data/app/org.cocos2dx.hellocpp-1.apk,libraryPath=/data/app-lib/org.cocos2dx.hellocpp-1]: findLibrary returned null
03-02 16:51:40.923: E/AndroidRuntime(6716): at java.lang.Runtime.loadLibrary(Runtime.java:365)
03-02 16:51:40.923: E/AndroidRuntime(6716): at java.lang.System.loadLibrary(System.java:535)
03-02 16:51:40.923: E/AndroidRuntime(6716): at org.cocos2dx.hellocpp.HelloCpp.(HelloCpp.java:37)
03-02 16:51:40.923: E/AndroidRuntime(6716): ... 15 more

希望各位高人帮忙看看

展开全部

  • 写回答

2条回答 默认 最新

  • JiXianWanMei999 2014-03-04 02:36
    关注

    http://hi.baidu.com/moon_2009/item/04660a51dc90f4464fff204c
    根据这个网址里面说的方法,配置一下ndk以及各种参数吧,关键有三步

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 fluent设置了自动保存后,会有几个时间点不保存
  • ¥20 激光照射到四象线探测器,通过液晶屏显示X、Y值
  • ¥15 这怎么做,怎么在我的思路下改下我这写的不对
  • ¥50 数据库开发问题求解答
  • ¥15 安装anaconda时报错
  • ¥20 如何用Python处理单元格内连续出现的重复词语?
  • ¥15 小程序有个导出到插件方式,我是在分包下引入的插件,这个export的路径对吗,我看官方文档上写的是相对路径
  • ¥20 希望有人能帮我完成这个设计( *ˊᵕˋ)
  • ¥100 将Intptr传入SetHdevmode()将Intptr传入后转换为DEVMODE的值与外部代码不一致
  • ¥50 基于ERA5数据计算VPD