简体   繁体   中英

UnsatisfiedLinkError couldn't load game - cocos2d-x on Android

I am trying to create a new cocos2d-x Project for Android and followed the following tutorial: Cocos2d-x Android Integration

At the end, I get an error when I try to run the application stating:

10-14 21:52:37.510: E/AndroidRuntime(1568): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load game: findLibrary returned null

The "game" library is loaded from the generated activity:

         System.loadLibrary("game");

But there isn't anything in my project as game.so. I only have libgame.so What should I do to solve this issue?

Where did you place your .so file? Make sure it is under "libs" and maybe even "libs/armeabi" or "libs/armeabi-v7". If it already has a v7, try deleting it.

the naming convention for android turns libgame.so into "game" for loadlibrary .. your naming is correct

also make sure that you built this library with NDK or the producers of this "game" build the library with NDK (which by the naming, seems like it was!)

Seems like your having a 64-bit issue that can be found here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM