I am going to use maps in my Android application and I have to use Google Play services. I read a lot of q \ a here, for example. In the mentioned question, accepted answers are suggested using an older version of google play services lib, e.g. for Froyo. I downloaded google play services r10 and used it in my application, but I got errors.
If I exclude this line of code from the manifest:
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
and run the application on my device (the current version of google playe services on my device is 3.2.66), this causes an error:
java.lang.IllegalStateException: The meta-data tag in your app AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
and if I turn it on in android: value = 4030500, the application will start, but says that I should update my “Google game services”.
So, what should I put android: value or is my method correct?
Hi
android google-play google-maps
Babak fakhriloo
source share