程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> android游戲-android cocos2dx環境搭建好以後,運行hellocpp出現了如下錯誤

android游戲-android cocos2dx環境搭建好以後,運行hellocpp出現了如下錯誤

編輯:編程綜合問答
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

希望各位高人幫忙看看

最佳回答:


http://hi.baidu.com/moon_2009/item/04660a51dc90f4464fff204c
根據這個網址裡面說的方法,配置一下ndk以及各種參數吧,關鍵有三步

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved