I'm implementing Google_play_services to Android (C++) game using Visual Studio, VisualGDB and Android NDK. I Managed to do initialization:
extern "C" jint JNI_OnLoad(JavaVM* vm, void* reserved)
{
Logger::log("JNI_OnLOAD");
gpg::AndroidInitialization::JNI_OnLoad(vm);
return JNI_VERSION_1_4;
}
but I can't add google play services libs as shown here
https://developers.google.com/games/services/cpp/gettingStartedAndroid
because google_play_services since version 22 doesn't contain
"/extras/google/google_play_services/libproject",
Instead there are multiple libraries in
"/extras/google/m2repository/com/google/android/gms"
I already tried to download version 22 and just copy google-play-services.jar file which i found to the libs directory of my project. But it gives these errors. I assume i need to import newest version. But how to do this?
This are the errors I get