alinradut / simplegamecocos2d-x Goto Github PK
View Code? Open in Web Editor NEWA porting of the popular Cocos2D tutorial by Ray Wenderlich to Cocos2D-x
License: Other
A porting of the popular Cocos2D tutorial by Ray Wenderlich to Cocos2D-x
License: Other
The original tutorial can be found here: http://www.raywenderlich.com/352/how-to-make-a-simple-iphone-game-with-cocos2d-tutorial
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
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>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.