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.
Related
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.
Good Noon to all
I'm developing an application which is based on accessing google account for login purpose of my own appplication.
If i run my application means it throws an error as
"Google Play services out of date. Requires 4452000 but found 3136130"
here is my screen shot
I faced the same problem, solution (for Eclipse) was:
remove local copy of google play service from workspace
open Android SDK Manager
delete google play service
install google play service
add local copy of google play service to workspace
Done!
If you search Google play Services in the google play store, you will find an app by google you have to download to get this functionality. If you have any problems, here's the link:
https://play.google.com/store/apps/details?id=com.google.android.gms&hl=nl
I've tried creating new emulators with the normal API levels (tried 17 and 19) and adding the apk from this thread but it doesn't seems to work after the update. I did get it to work though by creating an emulator using the Google API level 19.
To get it to work I think you need to do (assuming Eclipse):
Window->Android SDK Manager and make sure all is up to date.
Update the google play library you've imported to your Workbench
Create a new device (after updating) with Target Google API lvl 19
Then start the emulator and install your app. For me that made the map work. I think your problem is that you've updated the google play library to the newest while you created the emulator before that. Then it doesn't have the version installed you are using in your project.
I am writing an android apps which require the use of Google Map.
I use Eclipse and have downloaded the SDK.
I then import the Google Play Service and the maps sample inside
and Eclipse have successfully compile and run in an emulator.
However, while running, it didn't work!!
It closed the apps after a few second on the main page, and none of the fragments(objectS)
were shown...
I have not change anything except adding android.support-v4.jar
and change meta-data in manifest for my Google key.
I have tried to:
run on emulator and real device(Samsung S2 LTE)
use both registered certificate and debug certificate, and have asked for API access on Google to get a key
use different versions of Eclipse: Kepler, Helios and the one downloaded from developer
But none of them work.
Does anybody know what's happening? What shall I do to fix it?
Thanks
This Worked for me
1) Install Google map APIs. This can be done in Eclispe
Windows/Android SDK and AVD Manager -> Available Packages -> Third
Party Add-ons -> Google Inc. -> Google APIs by Google Inc., Android
API X
2) From command line create new AVD. This can be done by listing
targets (android list targets), then android create avd -n
new_avd_api_233 -t "Google Inc.:Google APIs:X"
3) Then create AVD in Eclipse Windows/Android SDK and AVD Manager ->
New... -> (Name: new_avd_X, Target: Google APIs (Google Inc.) - API
Level X)
4) Create Android Project in Eclipse File/New/Android Project and
select Google APIs Build Target.
5) add between tags.
5) Run Project as Android Application.
I think you must have followed all these steps to import the Google play services library project and its map samples which are given in this url :-
https://developers.google.com/maps/documentation/android/intro
If you have correctly imported the project and library by following above steps and still your map is not working then it may be because of the reason that the google play service are not working on your device on which you are running tha samples. You have to reboot your device so that the google services start working.
I'm new to using github, but I am somewhat positive I have it configured in eclipse properly.
I'm also new to using the Google Maps API. However, the other people working on the project already have it configured with the API key and it works for them.
In my case, however:
The project successfully imports. When I run the app on my nexus 7 through eclipse, the app runs.
When the google maps api is called, the map opens but it without any map data (blank).
The console is showing a Google Authentication error.
Do I have to use my own API key?
Thanks
Assuming the API key is hardcoded in the AndroidManifest.xml in the project: ask one of the others developers to give you debug keystore from their ~/.android/ (C:\Users\somename\.android\ on Windows) folder and put it in the same location on your machine.
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