Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: XE10 - Mapsview examples, getting error "google play services needs to be..



Permlink Replies: 2 - Last Post: Mar 23, 2016 9:57 AM Last Post By: Victor Zepeda
Filippo Forlani

Posts: 17
Registered: 7/23/99
XE10 - Mapsview examples, getting error "google play services needs to be..
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 21, 2016 10:33 AM
Hello,
I tried different ways, but always get error trying to run TMapsView example (TabbedMapProject).

"Google Play Services needs to be updated. Please go to Play Store to update Google Play Services then, restart the application".

I followed steps on docwiki, but actually XE10 and Google developer site seems quite different:
http://docwiki.embarcadero.com/RADStudio/XE8/en/Configuring_Android_Applications_to_Use_Google_Maps

Actually, if I make a mistake, I find ambiguos in docwiki:
- application's package name: where is it? is like com.embarcadero.${modulename}?
- what's modulename?
- what's name of 'api Key' I should use in google developer's site?
google developer console, "now", ask for a name of the api Key (should it be 'apiKey' as set in version info of XE10 project option?)
then 'package name', is that something like com.something.some what else?
- actually sh1-fingerprint I found it!!!! :D

Thanks in advance,
Filippo
--
______________________
Filippo Forlani
www.filippoforlani.org
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: XE10 - Mapsview examples, getting error "google play services needs to be..
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 21, 2016 11:59 AM   in response to: Filippo Forlani in response to: Filippo Forlani
Am 21.03.2016 um 18:33 schrieb Filippo Forlani:
Hello,
I tried different ways, but always get error trying to run TMapsView example (TabbedMapProject).

"Google Play Services needs to be updated. Please go to Play Store to update Google Play Services then, restart the application".

I followed steps on docwiki, but actually XE10 and Google developer site seems quite different:
http://docwiki.embarcadero.com/RADStudio/XE8/en/Configuring_Android_Applications_to_Use_Google_Maps

Actually, if I make a mistake, I find ambiguos in docwiki:
- application's package name: where is it? is like com.embarcadero.${modulename}?
- what's modulename?
- what's name of 'api Key' I should use in google developer's site?
google developer console, "now", ask for a name of the api Key (should it be 'apiKey' as set in version info of XE10 project option?)
then 'package name', is that something like com.something.some what else?
- actually sh1-fingerprint I found it!!!! :D

Modulename is the name you gave your project. But you should change the
complete package name anyway. It's somewhere in your project options.

Greetings

Markus
Victor Zepeda

Posts: 20
Registered: 3/22/16
Re: XE10 - Mapsview examples, getting error "google play services needs to be..
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 23, 2016 9:57 AM   in response to: Filippo Forlani in response to: Filippo Forlani
Hello, you can search the package name in the android manifest of your app.
Search the manifest in the Android folder that is created when you compile your application.

In my case, i only have projects with debug config, so my android manifest is in the folder Android>Debug>AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.embarcadero.Application"
android:versionCode="1"
android:versionName="1.0.0"
android:installLocation="preferExternal">

Greetings.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02