@316746367 写道:
生成项目后导入android studio,连接手机调试后直接闪退,log打印错误如下:
08-24 12:06:08.029 24249-24249/com.rainm.hellococos E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.rainm.hellococos, PID: 24249
java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_9-classes.dex",
dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_6-classes.dex",
dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_3-classes.dex",
dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-slice_0-classes.dex",
dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-com.android.vending.expansion.zipfile_9c317306dc992ac94a3516344e082ab5b680f01e-classes.dex",
dex file "/data/data/com.rainm.hellococos/files/instant-run/dex/slice-android-async-http-1.4.8_ec2ed023bc6eeb0b15e31fdf6b0ed95fe6db1fba-classes.dex"],nativeLibraryDirectories=[/data/app/com.rainm.hellococos-1/lib/arm, /vendor/lib, /system/lib, /vendor/lib, /system/lib]]] couldn't find "libMyGame.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:989)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:248)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:264)
at android.app.Activity.performCreate(Activity.java:6014)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1116)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2392)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2506)
at android.app.ActivityThread.access$800(ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1395)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5444)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:943)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:738)总之关键错误好像就是couldn't find "libMyGame.so"这句
我到项目目录中看了一下,确实没有生成任何.so文件,不知道这是为什么
从昨天搞到现在快崩溃了。。
刚刚接触cocos,请大家多指教
帖子: 1
参与者: 1