1

我在 cocos2d-js 下开发了一段时间的游戏。我能够将 plugin-x 和 facebook 集成添加到 android 构建中。几天前,我试图将 admob 添加为另一个插件,但遇到了困难。我第一次尝试将项目添加到 Eclipse 并尝试在那里处理它,但我搞砸了整个构建。我试图删除所有添加(admob、facebook、pluginx)并重新开始,但在编译和设备安装完成后我不断收到此消息:

D/AndroidRuntime( 7513): Shutting down VM
W/dalvikvm( 7513): threadid=1: thread exiting with uncaught exception (group=0x41929ba8)
E/AndroidRuntime( 7513): FATAL EXCEPTION: main
E/AndroidRuntime( 7513): Process: com.shirkan.PiuPiu, PID: 7513
E/AndroidRuntime( 7513): java.lang.UnsatisfiedLinkError: Couldn't load cocos2djs from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.shirkan.PiuPiu-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.shirkan.PiuPiu-1, /vendor/lib, /system/lib]]]: findLibrary returned null
E/AndroidRuntime( 7513):    at java.lang.Runtime.loadLibrary(Runtime.java:358)
E/AndroidRuntime( 7513):    at java.lang.System.loadLibrary(System.java:526)
E/AndroidRuntime( 7513):    at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:85)
E/AndroidRuntime( 7513):    at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:99)
E/AndroidRuntime( 7513):    at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 7513):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 7513):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
E/AndroidRuntime( 7513):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime( 7513):    at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 7513):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 7513):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 7513):    at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 7513):    at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 7513):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7513):    at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 7513):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 7513):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 7513):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  490):   Force finishing activity com.shirkan.PiuPiu/org.cocos2dx.javascript.AppActivity

谁能建议什么会导致这种错误?谢谢。

4

0 回答 0