I have installed google play services from sdk manager in eclipse, however, when I go to project properties -> android tab there is no library to add all I've got is ..\appcompat_v7
Can you please help
Could you check that you imported the library onto the same physical drive as your project? This is a common mistake and as far as I know official documentation doesn't mention it.
Related
I am desperately trying to integrate GA v4 in my Android app.
And I followed the guide here https://developers.google.com/analytics/devguides/collection/android/v4/
And integrated Google Play Services lib as described, but it gives me
Could not find class 'com.google.android.gms.analytics.Tracker
But I can find classes and its namespaces in the project.
I can't figure out what's happening here.
I followed also the instruction on Analytics for Android v4.
But additionally I had to update play services and build tools in the SDK manager. Then I had to add compile 'com.google.android.gms:play-services:8.4.0' in the app build.gradle (above of compile 'com.google.android.gms:play-services-analytics:8.4.0'. The Tracker class was still unknown (red underlined) but despite of that I pressed "Run" (install app) in Android Studio and only then analytics was recognized and could be used.
I had the same problem and the reason was my Google Play services package was outdated.
Using Eclipse, I went into Window > Android SDK Manager, checked only Google Play services package (under "Extras" in the bottom), updated it and created a new lib project.
Then I followed the steps in tutorial below to create a new google play services lib project.
https://developer.android.com/google/play-services/setup.html
Hope it helps!
/Paulo
I'am trying to add Google Analytics to my application
I've followed every step at this page
https://developers.google.com/analytics/devguides/collection/android/v4/#tracking-methods
the issue is Eclipse not recognized Tracker and GoogleAnalytics
the Google play service and every thing are installed from SDK
I've tried to search for V4 Analytics SDK i could't find it
i don't know if i mess something here
any advice ?
Finally found the solution ..
Google Analytics V4 has no SDK , its depends on Google Play Services SDK
So here is what i did :
download Google Play Services SDK from Android SDK
go to Android SDK folder on you PC partition
Follow this path (/extras/google/google_play_services/libproject/ )
you'll find this folder ( google-play-services_lib ) <- thats what we need
now go to Eclipse and import this Project ( google-play-services_lib ) as Library
right click on your project Properties -> Android -> Second Tab ( Library ) Click Add and select google-play-services_lib
Now you've done you can use Google Analytics V4 with no problems at all
The Idea is you need to download and import Google Play Services to Eclipse then add the library to your project .
enjoy coding ..
In Android Studio you need to add the google play services as dependency to gradle. For example:
compile 'com.google.android.gms:play-services:6.5.87'
After that click the Sync Project with Gradle Files icon and it should work.
The guide to setting up GCM here: https://developer.android.com/google/gcm/client.html specifies:
Caution: When you add the Play Services library to your project, be sure to add it with resources, as described in Setup Google Play Services SDK.
Then the page it links to (https://developer.android.com/google/play-services/setup.html#Setup) never mentions the 'with resources' bit.
Does anyone know what this means, as I fear I've missed something when setting up my play services project.
With recources means as library project, not as JAR file.
Install the Google Play services from SDK manager.
After install it will be at /extras/google/google_play_services/libproject/google-play-services_lib/
So? you can copy this folder in you workspace? if you need.
If you are using Eclipse, import the library project into your workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.
Add Referense to Google Play services in your project. Example http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
Does anyone know what this means
I suspect that it is a clumsy way of emphasizing that you need to attach the Play Services SDK Android library project to your app, rather than just copying over some JAR.
I Have a Android Map Project in Eclipse and Testing It Now debug Mode.Problem is that I am trying to add Google Play Service Reference to My Project.When i try import this Existing Code Into Work space from Eclipse and I Choose the Android SDK path Where Play Service is Installed and Press OK the I Show The Red Exclamation Sign On my Project.Is there any One Know What May Be the Issue and Any Other Right Way to add reference of Library. Plz Help
The Google BaseGameUtils should be defined as a LIBRARY project and you should add it as a REFERENCE in your project.
Please see the guide provided by Google at: https://github.com/playgameservices/android-samples/blob/master/README.md which I found to be reasonably accurate.
This may also help:
Google Play Game Services leaderboard - Unable to set jars up correctly in Eclipse
Good Luck !
I just imported an example of the google map api V2 for android to test. It's missing the google-play-services_lib.jar. I can't find this library. Where do I get it?
First check that your sdk contains Google Play Services installed or not.
For that you do the below steps
In Eclipse--->Window--->Android SDK MAnager--->Check Google Play
Services installed in extras.
Then you add the google plays services jar by find that one at the below location
your-android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs
If you do the above and it is still not working because it cant access the temp folder you
can go to your SDK manager in your android sdk directory and run it as an administrator
Right-click on your google-play-services_lib project -> Build Project
Right-click on your project using the google-play-services_lib -> Build Project