[solved] How to use Google Play Service on Code IDE?

I want to use Google Play Services features, but I couldn’t find how to link it.

I added google-play-service_lib to Project Explorer on Code IDE.
and, I added it to Project References (Project Explorer -> My Project -> (Right Click) -> Project References ) .

Is this way wrong?
If you have a information about this, I am looking forward to your help.

Thanks.

I have no idea if you can use cocos code IDE for this. Cocos Code IDE is for cocos2d-x-lua and cocos2d-js.

You need to import the android-project which is located in your proj.android folder. This android-project can be imported in an eclipse ADT (Android Development Tools). (I don’t know if Cocos Code IDE has ADT integrated).
There you need to add google-play-services_lib as a project reference.

Hope this helps.

1 Like

Thank you for every single time, Mr Michael !

I tried it on eclipse today.
However, on the eclipse, all of binding codes couldn’t be run.
Are there more settings to run binding code ?

I already added codes to Android.mk file in proj.android/jni directory.
On Code IDE, the binding codes are moving correctly.
On eclipse, application can be run and it isn’t stopped by error. But, it looks like that binding codes aren’t run.

Is the way to run binding code on eclipse different from it on CodeIDE ?

P.S.
I’m not a native English speaker. so, my post may contain mistakes.
I apologize that my poor English confused you.

I could solve it by myself.
Thanks for your help.

I didn’t copy my lua codes for asset directly…

1 Like