Answer the question
In order to leave comments, you need to log in
How to connect google-play-services to a project?
I want to use oauth2, which is provided by the google-play-services library.
The project uses phonegap, so the build takes place not through eclipse, but through ant.
I'm trying to connect the library as it says in the manual.
Namely: 1) I copy the project lib from the SDK to the project folder
2) in my project I run android update project --target 6 --path "pathto/project" --library
"pathto/lib"
3) I add it to the manifest
<meta-data android:name="com.google.android.gms.version" android:value="4030500" />
(@integer/...chet version) doesn't resolve, it seems like it's a known problem of version 13 of this library. Answer the question
In order to leave comments, you need to log in
from those rakes that I
went through when building through the CLI
, everything is taken from the Project / www / folder and decomposed into project folders for platforms.
if you corrected config.xml then! (it’s not clear to me yet how) you have to add manifest.xml, config.xml and another xml with lines in the android project, js in the folder of the android itself should be replaced, js of connected plugins should be replaced, but the code itself will not be replaced with java - this is if you you use plug-ins, because of this leapfrog, I don’t collect through the CLI, and if you add a project on iOs, it’s generally dark.
Now I'm doing something like this
I'm doing a project
adding a platform
cordova platform add ios
cordova platform add android
cordova plugin add org.apache.cordova.media
...
cordova plugin add org.apache.cordova.device-motion
I stopped collecting fongap through the CLI, it often makes jambs when its xml which in the Project / www / config.xml is shoved into the android project configs, especially if you put-remove plugins. Try to collect everything yourself exclusively for android in the android folder and build on eclipse.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question