Android Question Manifest file: Missing meta-data tag?

toby

Active Member
Licensed User
I got the following compilation error
java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="[USER=21225]@Integer[/USER]/google_play_services_version" />

But my Manifest file does contain the meta-tag in question, as shown below:
Manifest file:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
'End of default text.
'Caused by: java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist.  You must have the following declaration within the <application> element:     
'<meta-data android:name="com.google.android.gms.version" android:value="[USER=21225]@Integer[/USER]/google_play_services_version" />
AddApplicationText(
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="don't show my api key in the forum"
/>

<meta-data android:name="com.google.android.gms.version" android:value="[USER=21225]@Integer[/USER]/google_play_services_version" />
)

Could someone tell me what went wrong, please

TIA
 

toby

Active Member
Licensed User
Attached is the test app with which I try to show the google map directions between to points. Note: api key stripped before zipping.
 

Attachments

  • googleMapDirection.zip
    11.4 KB · Views: 52
Upvote 0

JohnC

Expert
Licensed User
Maybe this tutorial on google maps might help:

 
Upvote 0
Top