Android Question Firebase

stari

Active Member
Licensed User
Longtime User
hi
i trayed to integrate firebase, on tutorial from erel.
I insert snippet :
'************ Google Play Services Base ************AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version" />
)'************ Google Play Services Base (end) ************

but i get error by compiling:
AndroidManifest.xml:22:error:Error parsing XML: not well-formated (invalid token)

What i make wrong?
 

stari

Active Member
Licensed User
Longtime User
Are you using MS Edge?
OK, with Chrome Ok.
But what must i doo with this, what i get on Firebase console:


The Google services plugin for Gradle loads the google-services.json file you just downloaded. Modify your build.gradle files to use the plugin.

  1. Project-level build.gradle (<project>/build.gradle):

    buildscript {
    dependencies {
    // Add this line
    classpath 'com.google.gms:google-services:3.0.0'
    }
    }
  2. App-level build.gradle (<project>/<app-module>/build.gradle):

    ...
    // Add to the bottom of the file
    apply plugin: 'com.google.gms.google-services'
    includes Firebase Analytics by default help_outline

  3. Finally, press "Sync now" in the bar that appears in the IDE:

    android_studio_gradle_changed_butterbar@2x.png


 
Upvote 0

stari

Active Member
Licensed User
Longtime User
Thks. Done. Sory, hm, i get error by compile:

B4A version: 6.30
Parsing code. (0.08s)
Compiling code. (0.25s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
AndroidManifest.xml:32: error: Error: No resource found that matches the given name (at 'value' with value '@Integer/google_play_services_version').
 
Upvote 0
Top