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
Related
I need to find libproject folder to import Google Play Services to Eclipse, to import google play services on a project.
I install Google Play services 31 in "Android SDK Manager". When access to downloaded path I find:
I last version I have libproject:
¿Where is libproject to import google play services 31 in my Eclipse project?
Google Play services no longer ships a libproject directory and does not officially support development in Eclipse.
You'll have to use an older version or find an unofficial workaround if you want to use (the now completely deprecated) Eclipse.
I was also facing the same issue because I'm still using Eclipse. I was able to integrate Play Services revision 31 in my project using the following steps:
Start Android SDK Manager and choose to install Extras > Google Repository.
Navigate to android-sdk\extras\google\m2repository\com\google\android\gms\play-services-games\VERSION\
Change the extension of the .AAR file to .ZIP and extract the contents into a temporary location.
Go to the extracted folder and create a new directory called "lib", and move the "classes.jar" file into it.
Import the folder into Eclipse as existing Android code. Once imported you may need to set the project as Library and set the appropriate compile API level.
Now go back to the android-sdk\extras\google\m2repository\com\google\android\gms\play-services-games\VERSION\ folder and open up the pom file using any text editor and look at the dependancies section to see which other libraries it depends on.
Repeat the steps again for the new libraries you've identified as dependancies in the earlier step.
You have to keep checking all the dependancies until you've identified all the libraries you need for your project's purposes. For example, my project uses Ads, Cloud Save and Leaderboards/Achievements, so I did this process and ended up with 9 libraries to import into Eclipse (see attached screenshot).
Screenshot
I just added OneSignal to my Cordova project. This appears to use Google Play services i.e. (I get a message "No valid Google Play services APK found"). I was wondering the best approach for adding it.
I have Google Play services v8.4.89 installed on my phone.
I have Google Play services installed via the SDK manager:
This creates a google_play_services folder (without a lot in it):
UPDATE
As per this Google has broken down Google Play Services into multiple libraries (.aar) located at:
android-sdk\extras\google\m2repository\com\google\android\gms
build.gradle dependencies:
I'm a little unsure of what to do next. I thought I could have potentially used this.
I might add I am using IntelliJ and have tried to import the JAR manually as per this.
Thanks,
The OneSignal error "No valid Google Play services APK found" means that the "Google Play services" app is missing from the device or is most likely just out of date. It should check the version under Settings>Apps. It should update automatically in the background after you open the Google Play store on the device and sign in. See the following link for more details.
https://documentation.onesignal.com/docs/all-users-are-shown-as-not-subscribed
You need to add it to your project library..
File >> Import, select Android > Existing Android Code into Workspace, browse to the library project (your android sdk env) to import it. extras/google/google_play_services/
After this.. you need to open the properties for your project..
Right click on your project and click properties select android and under the library section add the google lib.
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.
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.
I am using Android 2.3.6 Device for testing. When I run the Google Map android api v2 on the device it doesnot show the map on the device and also show the error on logcat as follows
Google Maps Android API Authorization failure.
Also on the Console It shows the
[2012-12-07 13:59:42 - google-play-services_lib] Could not find google-play-services_lib.apk!
Please Help Me!!!!!!!!
I also found that the play services libproject has to be imported onto the same physical drive as your project. (which may not be the case if you didn't check the 'Copy projects into workspace' checkbox)
Setting up a Library Project
I just added the project of google services and added a reference in my project property->Android
check above link.
First of all download the latest google play services revision 3.
Import the google play services libproject as a library in Eclipse.
Then go to properties>Android and below add the above project as a library to your project.
Also ensure that the google play services are updated on your device.Use the debug keystore if you are directly running the app on the device.You will have to add the sha1 print and package of the debug keystore while creating Android key.
Refer to this example :
https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw
Unfortunately for using the Google Maps you have to test the application on a real device as the emulator is not supported.