chukong / cocosstudiosamples Goto Github PK
View Code? Open in Web Editor NEWSamples For Cocos Studio
License: MIT License
Samples For Cocos Studio
License: MIT License
I want to open DemoBag sample,
I checked out to tag/2.1.5 as README.md wrote,
it showed:
CocoStudioSamples/cocos2d-x/extensions/CocoStudio/Json/lib_json/json_internalarray.inl: No such file or directory
It really doesn't have CocosStudio directory in version 2.1.5,
please check it out and fix the README.md
Thanks.
ps,
Don't you really feel that changing usage(class name, method name,etc.) in every cocos version is a disaster?
Please check it, my device is Nexus 5 with Android 5
Log crash:
12-01 16:35:05.799: D/AndroidRuntime(18703): Shutting down VM
12-01 16:35:05.817: E/AndroidRuntime(18703): FATAL EXCEPTION: main
12-01 16:35:05.817: E/AndroidRuntime(18703): Process: com.cocosstudio.demo, PID: 18703
12-01 16:35:05.817: E/AndroidRuntime(18703): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.cocosstudio.demo/com.cocosstudio.demo.AppActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.app.ActivityThread.access$800(ActivityThread.java:144)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.os.Looper.loop(Looper.java:135)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.app.ActivityThread.main(ActivityThread.java:5221)
12-01 16:35:05.817: E/AndroidRuntime(18703): at java.lang.reflect.Method.invoke(Native Method)
12-01 16:35:05.817: E/AndroidRuntime(18703): at java.lang.reflect.Method.invoke(Method.java:372)
12-01 16:35:05.817: E/AndroidRuntime(18703): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
12-01 16:35:05.817: E/AndroidRuntime(18703): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
12-01 16:35:05.817: E/AndroidRuntime(18703): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.content.ContextWrapper.getResources(ContextWrapper.java:85)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.view.ContextThemeWrapper.getResources(ContextThemeWrapper.java:74)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.view.View.(View.java:3570)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.view.View.(View.java:3675)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.widget.TextView.(TextView.java:634)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.widget.Button.(Button.java:111)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.widget.Button.(Button.java:107)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.widget.Button.(Button.java:103)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.widget.Button.(Button.java:99)
12-01 16:35:05.817: E/AndroidRuntime(18703): at com.cocosstudio.demo.AppActivity.(AppActivity.java:35)
12-01 16:35:05.817: E/AndroidRuntime(18703): at java.lang.reflect.Constructor.newInstance(Native Method)
12-01 16:35:05.817: E/AndroidRuntime(18703): at java.lang.Class.newInstance(Class.java:1572)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.app.Instrumentation.newActivity(Instrumentation.java:1065)
12-01 16:35:05.817: E/AndroidRuntime(18703): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2199)
12-01 16:35:05.817: E/AndroidRuntime(18703): ... 10 more
12-01 16:36:13.128: D/AndroidRuntime(19133): Shutting down VM
12-01 16:36:13.134: E/AndroidRuntime(19133): FATAL EXCEPTION: main
12-01 16:36:13.134: E/AndroidRuntime(19133): Process: com.cocosstudio.demo, PID: 19133
12-01 16:36:13.134: E/AndroidRuntime(19133): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.cocosstudio.demo/com.cocosstudio.demo.AppActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.app.ActivityThread.access$800(ActivityThread.java:144)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.os.Looper.loop(Looper.java:135)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.app.ActivityThread.main(ActivityThread.java:5221)
12-01 16:36:13.134: E/AndroidRuntime(19133): at java.lang.reflect.Method.invoke(Native Method)
12-01 16:36:13.134: E/AndroidRuntime(19133): at java.lang.reflect.Method.invoke(Method.java:372)
12-01 16:36:13.134: E/AndroidRuntime(19133): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
12-01 16:36:13.134: E/AndroidRuntime(19133): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
12-01 16:36:13.134: E/AndroidRuntime(19133): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.content.ContextWrapper.getResources(ContextWrapper.java:85)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.view.ContextThemeWrapper.getResources(ContextThemeWrapper.java:74)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.view.View.(View.java:3570)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.view.View.(View.java:3675)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.widget.TextView.(TextView.java:634)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.widget.Button.(Button.java:111)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.widget.Button.(Button.java:107)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.widget.Button.(Button.java:103)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.widget.Button.(Button.java:99)
12-01 16:36:13.134: E/AndroidRuntime(19133): at com.cocosstudio.demo.AppActivity.(AppActivity.java:35)
12-01 16:36:13.134: E/AndroidRuntime(19133): at java.lang.reflect.Constructor.newInstance(Native Method)
12-01 16:36:13.134: E/AndroidRuntime(19133): at java.lang.Class.newInstance(Class.java:1572)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.app.Instrumentation.newActivity(Instrumentation.java:1065)
12-01 16:36:13.134: E/AndroidRuntime(19133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2199)
12-01 16:36:13.134: E/AndroidRuntime(19133): ... 10 more
DemoFishingjoy
2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:33:29: Use of undeclared identifier 'CCSSceneReader'; did you mean 'SceneReader'?
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:53:2: Use of undeclared identifier 'CCSSceneReader'; did you mean 'SceneReader'?
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:55:32: No member named 'instance' in 'cocos2d::extension::UIHelper'
DemoCowboyGame
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:53:2: Use of undeclared identifier 'CCSSceneReader'; did you mean 'SceneReader'?
DemoGame
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:88:22: No member named 'CCSSceneReader' in namespace 'cocos2d::extension'; did you mean 'SceneReader'?
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:90:32: No member named 'instance' in 'cocos2d::extension::UIHelper'
DemoGameScnen
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:33:23: Use of undeclared identifier 'CCSSceneReader'; did you mean 'SceneReader'?
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/HelloWorldScene.cpp:53:32: No member named 'instance' in 'cocos2d::extension::UIHelper'
SampleChangeEquip
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/Bag.cpp:310:22: No member named 'CCSSceneReader' in namespace 'cocos2d::extension'; did you mean 'SceneReader'?
/Users/MinSeoKang/Downloads/cocos2d-x-2.2.1/projects/fortune2/classes/Bag.cpp:312:32: No member named 'instance' in 'cocos2d::extension::UIHelper'
ZipUtils.cpp
\cocos2d-x\cocos2dx\platform\android\ccgl.h
“GLES2/gl2platform.h”: No such file or directory
Every sample got the same error.
need any configuration?
i am using cocos2dx2.2.1 i downloaded this source but it is not working on Xcode5.
but all of Demo source don't work and also on eclipse.
please check it again.
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.