@tianyi2010 写道:
如题,creator1.3.2构建的android studio工程,先构建,然后再编译(勾选了android stuido)选项,然后用android studio打开调试,报错如下:
$ adb shell am start -n "com.raybox.TotemGame/org.cocos2dx.javascript.AppActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Connected to process 2255 on device emulator-5554
W/System: ClassLoader referenced unknown path: /data/app/com.raybox.TotemGame-2/lib/x86
I/InstantRun: Instant Run Runtime started. Android package is com.raybox.TotemGame, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/com.raybox.TotemGame-2/lib/x86
D/AndroidRuntime: Shutting down VM--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.raybox.TotemGame, PID: 2255
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-libPluginProtocol_255eb18b9284b553219e6fd024604ca52d4b7a82-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-httpclient-4.4.1.1_058e3bff0840a9aa125d15caa48c9691bf242906-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-com.android.vending.expansion.zipfile_4f66d796ea83dd9c0cd7d94ebd95d67e002e3d6a-classes.dex", dex file "/data/data/com.raybox.TotemGame/files/instant-run/dex/slice-android-async-http-1.4.9_eadf857d70ca6bf5c94c705207f6b78aafeb1cac-classes.dex"],nativeLibraryDirectories=[/data/app/com.raybox.TotemGame-2/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libcocos2djs.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:984)
at java.lang.System.loadLibrary(System.java:1530)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:249)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:265)
at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:46)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Application terminated.
求了解的大神指点迷津~~~~
帖子: 5
参与者: 1