Giter Site home page Giter Site logo

alinradut / simplegamecocos2d-x Goto Github PK

View Code? Open in Web Editor NEW
22.0 7.0 17.0 28.6 MB

A porting of the popular Cocos2D tutorial by Ray Wenderlich to Cocos2D-x

License: Other

C++ 26.53% Objective-C 3.72% Shell 0.07% Java 0.61% C 63.96% Erlang 0.02% Perl 0.53% Ada 1.25% Assembly 1.97% Pascal 0.57% C# 0.76% JavaScript 0.01%

simplegamecocos2d-x's Introduction

simplegamecocos2d-x's People

Contributors

alinradut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplegamecocos2d-x's Issues

java.lang.UnsatisfiedLinkError: Couldn't load cocosdenshion from loader

Hi, there.
the IOS project does work very well without any issues, but android. Cocos Denshion seems not to be linked correctly. I think it's an unset/wrong set path or similar in Eclipse, but can't figure out the problem.
Before i ran a created project successfully (created via script "create_project.py" in cocos2d-x 2.1.4).
Do you have an idea, what went wrong?

System:
Mac OS X 10.8.4
Eclipse: ADT Bundle
Cocos2d-x 2.1.4
NDK: r9
Android: 4.3

Complete error messages:
09-20 03:26:55.887: W/dalvikvm(2567): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/cocos2dx/simplegame/SimpleGame;
09-20 03:26:55.887: W/dalvikvm(2567): Class init failed in newInstance call (Lorg/cocos2dx/simplegame/SimpleGame;)
09-20 03:26:55.887: D/AndroidRuntime(2567): Shutting down VM
09-20 03:26:55.897: W/dalvikvm(2567): threadid=1: thread exiting with uncaught exception (group=0x41465700)
09-20 03:26:55.917: E/AndroidRuntime(2567): FATAL EXCEPTION: main
09-20 03:26:55.917: E/AndroidRuntime(2567): java.lang.UnsatisfiedLinkError: Couldn't load cocosdenshion from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.cocos2dx.simplegame-2.apk"],nativeLibraryDirectories=[/data/app-lib/org.cocos2dx.simplegame-2, /system/lib]]]: findLibrary returned null
09-20 03:26:55.917: E/AndroidRuntime(2567): at java.lang.Runtime.loadLibrary(Runtime.java:355)
09-20 03:26:55.917: E/AndroidRuntime(2567): at java.lang.System.loadLibrary(System.java:525)
09-20 03:26:55.917: E/AndroidRuntime(2567): at org.cocos2dx.simplegame.SimpleGame.(SimpleGame.java:47)
09-20 03:26:55.917: E/AndroidRuntime(2567): at java.lang.Class.newInstanceImpl(Native Method)
09-20 03:26:55.917: E/AndroidRuntime(2567): at java.lang.Class.newInstance(Class.java:1130)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.os.Handler.dispatchMessage(Handler.java:99)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.os.Looper.loop(Looper.java:137)
09-20 03:26:55.917: E/AndroidRuntime(2567): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-20 03:26:55.917: E/AndroidRuntime(2567): at java.lang.reflect.Method.invokeNative(Native Method)
09-20 03:26:55.917: E/AndroidRuntime(2567): at java.lang.reflect.Method.invoke(Method.java:525)
09-20 03:26:55.917: E/AndroidRuntime(2567): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-20 03:26:55.917: E/AndroidRuntime(2567): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-20 03:26:55.917: E/AndroidRuntime(2567): at dalvik.system.NativeStart.main(Native Method)
09-20 03:26:55.937: W/ActivityManager(286): Force finishing activity org.cocos2dx.simplegame/.SimpleGame

.cocos-project.json is not found

Below is the error when I try to compile -

D:\Softwares\workspace_cocos2d\codeName\Classes>cocos -v
cocos2d-x-3.13.1
Cocos Console 2.1
D:\Softwares\workspace_cocos2d\codeName\Classes>
D:\Softwares\workspace_cocos2d\codeName\Classes>
D:\Softwares\workspace_cocos2d\codeName\Classes>cocos compile -p android -s "D:\Documents\Projects\New folder\SimpleGameCocos2D-x-master" --ndk-mode debug --app-abi armeabi-v7a --ap android-25
D:\Documents\Projects\New folder\SimpleGameCocos2D-x-master.cocos-project.json is not found.
D:\Softwares\workspace_cocos2d\codeName\Classes>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.