libcocos2dcpp.so Trouble shoot
most case of libcocos2dcpp.so error is coming from invalid compilation.
first check compilation is successfully done, and then libcocos2dcpp.so file is created
under proj.android-studio\app\obj\local\armeabi folder
if you met this kind of error message, just re-compile cocos.
11-15 22:24:22.408 15279-15279/org.cocos2dx.InfiniteFlight E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.cocos2dx.InfiniteFlight, PID: 15279
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.cocos2dx.InfiniteFlight-1/base.apk"],nativeLibraryDirectories=[/data/app/org.cocos2dx.InfiniteFlight-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libcocos2dcpp.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:249)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:264)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
at android.app.ActivityThread.access$1100(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
if you working on android studio develop environment, do compile like this command.
cocos compile -p android --android-studio
All is done let's compile ^^
최근댓글