的UnsatisfiedLinkError无法加载游戏 - 在Android上的cocos2d-X [英] UnsatisfiedLinkError couldn't load game - cocos2d-x on Android

查看:210
本文介绍了的UnsatisfiedLinkError无法加载游戏 - 在Android上的cocos2d-X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建为Android一个新的cocos2d-X项目,跟着下面的教程:
的Cocos2D-X的Andr​​oid集成

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");

但有没有什么在我的项目作为game.so.我只有libgame.so
我应该怎么做才能解决这个问题呢?

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

推荐答案

你在哪里把你的.so文件?请确保它是在库,甚至库/ armeabi或库/ armeabi-V7。如果已经有一个V7,尝试将其删除。

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.

针对Android回合的命名约定libgame.so到游戏为调用LoadLibrary ..您的命名是正确的。

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

也确保您建立了这个库NDK或这个游戏构建NDK库的生产商(它的命名,好像它是!)

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!)

好像你有,可以发现一个64位的问题的此处

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

这篇关于的UnsatisfiedLinkError无法加载游戏 - 在Android上的cocos2d-X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆