-
splendidTryLikes 0Problem Description
Hello i have some problems with Cocos Helper and you may can help me :P
my game is developed in MicrosoftVisualStudio using Cocos2d-x V 3.5. Now i wanted to implement Google Play Services and AdMob with help of your Cocos Helper. I followed the youtube tutorials where u teached how to setup a project and add different frameworks.
First of all, in your youtube videos you had no JRIResults, but now they are in the src folder. Do i need them? (In my case i included them just like the JNIHelper)
My next problem is that Eclipse can't resolve following package: com.google.android.gms.appstate.AppStateManager
I tried to uncomment the package and the code which uses the AppState, but when i try to compile in VisualStudio i get wierd errors about the JNIResults.cpp.
Like: – Cannot open include file ‘jni.h’ No such file or directory (You want to include this header file in JNIHelper.h)
– IntelliSense this declaration has no storage class or type specifie (for your use of USING_NS_CC_EXT in the SonarFrameworks.h)
And if i try to compile for Android with the console it just says after some compiling that the ndk build failed with no furture informations.
Hope you can help me, otherwise i guess the CocosHelper is no help for me :D
-
splendidTryLikes 0
Any suggestions?
-
OscarLeifLikes 0
splenddidTry
When you use the cocos helper you need
- SonarFrameworks.h
- SonarFrameworks.cpp
- JNIResults.h
- JNIResults.cpp
- JNIHelpers.cpp
- JNIHelpers.h
- for portability reason it’s a good idea to add all the files in the project.
Why ? Those are the files for android. You should really watch the video series.
Login to reply