Plugin-X HelloAnalytics Android example project crashed on startup in cocos2d-x version 2.2.0


#1

I used the publish.sh script and everything goes well, and I can compile the example project successfully, but when I run it on the device, it crashes. And here is the screenshot of Eclipse.

I’ve got stuck for two days for this, Can anybody help me, thanks in advanced.


屏幕快照 2013-09-29 下午6.40.08.png (475.8 KB)


#2

Anybody can help me ?


#3

Hi, I’m sorry that I have not seen this error before.
I tested the sample HelloAnalytics minutes ago. And the sample is running well. Here is the screenshot:

My device is MI 2S. The version of android system is 4.1.1.

Can you supply more information to location the problem? Such as the android version, the output when publish.sh is running and so on.

Thanks for your feedback!


#4

Here is my build environment :
Android SDK:adt-bundle-mac-x86_64-20130729
Android NDK:android-ndk-r8e
OS:Mountain Lion 10.8.5
Output info running the publish.sh script:

Last login: Sun Sep 29 17:36:44 on ttys000
MeYouGamesMacBook-Pro-2:~ meyougames$ cd /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/tools
MeYouGamesMacBook-Pro-2:tools meyougames$ ./publish.sh
/Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools
/Desktop/cocos2d-x-2.2.0/plugin/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
PLUGIN_ROOT\ =\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin
TARGET_ROOT\ =\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish
/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
/Desktop/cocos2d-x-2.2.0/plugin/tools/toolsForPublish /Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools

/Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools

Now have 7 plugins

Now publish protocols
———————————
target dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/protocols
android project dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/protocols/proj.android

Publish plugin for android
/Desktop/cocos2d-x-2.2.0/plugin/protocols/proj.android/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
\ No\ sub-builds\ to\ iterate\ on
BUILD\ SUCCESSFUL
Total\ time:\ 0\ seconds
\ No\ sub-builds\ to\ iterate\ on
BUILD\ SUCCESSFUL
Total\ time:\ 2\ seconds
Build\ C++\ code
/Desktop/cocos2d-x-2.2.0/plugin/tools/toolsForPublish /Desktop/cocos2d-x-2.2.0/plugin/protocols/proj.android/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
/Desktop/cocos2d-x-2.2.0/plugin/protocols/proj.android /Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools
make: Entering directory `/Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/protocols/proj.android’
make: Leaving directory `/Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/protocols/proj.android’

Native build action success.
/Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools
———————————

Now publish flurry
———————————
target dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/plugins/flurry
android project dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/plugins/flurry/proj.android

Publish plugin for android
/Desktop/cocos2d-x-2.2.0/plugin/plugins/flurry/proj.android/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
BUILD\ SUCCESSFUL
Total\ time:\ 0\ seconds
BUILD\ SUCCESSFUL
Total\ time:\ 3\ seconds
/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
———————————
Now\ publish\ umeng
———————————
target\ dir\ is\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/plugins/umeng
android\ project\ dir\ is\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/plugins/umeng/proj.android
Publish\ plugin\ for\ android
/Desktop/cocos2d-x-2.2.0/plugin/plugins/umeng/proj.android /Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools

BUILD SUCCESSFUL
Total time: 0 seconds

BUILD SUCCESSFUL
Total time: 3 seconds
/Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools
———————————

Now publish alipay
———————————
target dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/plugins/alipay
android project dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/plugins/alipay/proj.android

Publish plugin for android
/Desktop/cocos2d-x-2.2.0/plugin/plugins/alipay/proj.android/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
BUILD\ SUCCESSFUL
Total\ time:\ 0\ seconds
BUILD\ SUCCESSFUL
Total\ time:\ 3\ seconds
/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
———————————
Now\ publish\ nd91
———————————
target\ dir\ is\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/plugins/nd91
android\ project\ dir\ is\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/plugins/nd91/proj.android
Publish\ plugin\ for\ android
/Desktop/cocos2d-x-2.2.0/plugin/plugins/nd91/proj.android /Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools

BUILD SUCCESSFUL
Total time: 0 seconds

BUILD SUCCESSFUL
Total time: 3 seconds
/Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools
———————————

Now publish admob
———————————
target dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/plugins/admob
android project dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/plugins/admob/proj.android

Publish plugin for android
/Desktop/cocos2d-x-2.2.0/plugin/plugins/admob/proj.android/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
BUILD\ SUCCESSFUL
Total\ time:\ 0\ seconds
BUILD\ SUCCESSFUL
Total\ time:\ 3\ seconds
/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
———————————
Now\ publish\ twitter
———————————
target\ dir\ is\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/plugins/twitter
android\ project\ dir\ is\ /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/plugins/twitter/proj.android
Publish\ plugin\ for\ android
/Desktop/cocos2d-x-2.2.0/plugin/plugins/twitter/proj.android /Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools

BUILD SUCCESSFUL
Total time: 0 seconds

BUILD SUCCESSFUL
Total time: 3 seconds
/Desktop/cocos2d-x-2.2.0/plugin/tools/Desktop/cocos2d-x-2.2.0/plugin/tools
———————————

Now publish weibo
———————————
target dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/publish/plugins/weibo
android project dir is /Users/meyougames/Desktop/cocos2d-x-2.2.0/plugin/plugins/weibo/proj.android

Publish plugin for android
/Desktop/cocos2d-x-2.2.0/plugin/plugins/weibo/proj.android/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
BUILD\ SUCCESSFUL
Total\ time:\ 0\ seconds
BUILD\ SUCCESSFUL
Total\ time:\ 3\ seconds
/Desktop/cocos2d-x-2.2.0/plugin/tools /Desktop/cocos2d-x-2.2.0/plugin/tools
———————————
/Desktop/cocos2d-x-2.2.0/plugin/tools
MeYouGamesMacBook-Pro-2:tools meyougames$


#5

My Device is Meizu MX2, and the Android system is 4.1


#6

sorry, i cannot setup prj. Any more document ?


#7

Here is a general document of plugin-x: http://www.cocos2d-x.org/wiki/Plugin-X_Overview
Hope it’s helpful.


#8

Thanks Bin Zhang
So i have one more question, can we use this plugin with facebook?


#9

Duy Bui wrote:

Thanks Bin Zhang
So i have one more question, can we use this plugin with facebook?

If you want use facebook as a plugin, you should integrate facebook into plugin-x first.