Problem with building project to Android Studio

Problem with building project to Android Studio
0.0 0

#1

Hi,
I wrote game in javascript and built it for Android Studio. When I’m loading it to Android Studio everything is normal.
But when I ran it crashes… (
Here is log…
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.jim.Pirra-1/base.apk”],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn’t find “libcocos2djs.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:249)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:265)
at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:40)
at android.app.Activity.performCreate(Activity.java:6283)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
at android.app.ActivityThread.access$900(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
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:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
I saw many issues, but unsuccessfully… (((
ndk: android-ndk-r10e
Please help,
Thanks in advantage


#2

There is your issue, it not get compiled or compiled under different name check your Android.mk.

It means your Android.mk compiled lib name doesn’t match with lib name configured in Android manifest file most probably, check your configs:)


#3

Thanks for your reply…
Probably, problem was in compilation process(in my ndk-bundle folder). I download ndk again and replace old ndk-folder. Build and compile. Runs excellent. Before, it was building normal and compilation process was finishing with fail…
Thanks a lot again