stari Active Member Licensed User Longtime User Oct 24, 2016 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2016 #2 Are you using MS Edge? Upvote 0
stari Active Member Licensed User Longtime User Oct 24, 2016 #3 Erel said: Are you using MS Edge? Click to expand... Yes Upvote 0
stari Active Member Licensed User Longtime User Oct 24, 2016 #4 Erel said: Are you using MS Edge? Click to expand... 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. Project-level build.gradle (<project>/build.gradle): buildscript { dependencies { // Add this line classpath 'com.google.gms:google-services:3.0.0' } } 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 Finally, press "Sync now" in the bar that appears in the IDE: Upvote 0
Erel said: Are you using MS Edge? Click to expand... 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. Project-level build.gradle (<project>/build.gradle): buildscript { dependencies { // Add this line classpath 'com.google.gms:google-services:3.0.0' } } 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 Finally, press "Sync now" in the bar that appears in the IDE:
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2016 #5 You just need to put it in the project folder: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ Upvote 0
You just need to put it in the project folder: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/
stari Active Member Licensed User Longtime User Oct 25, 2016 #6 Erel said: You just need to put it in the project folder: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ Click to expand... 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
Erel said: You just need to put it in the project folder: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ Click to expand... 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').
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2016 #7 Have you added a reference to one of the Firebase libraries (libraries tab)? Upvote 0
stari Active Member Licensed User Longtime User Oct 25, 2016 #8 Erel said: Have you added a reference to one of the Firebase libraries (libraries tab)? Click to expand... O, thks again. Yes, now i added. Upvote 0
Erel said: Have you added a reference to one of the Firebase libraries (libraries tab)? Click to expand... O, thks again. Yes, now i added.
R Rajesh Krishnan Member Licensed User Feb 13, 2017 #9 Erel said: You just need to put it in the project folder: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ Click to expand... Hey Erel, Kind of stuck with the same issue were do i find the build gradle under my project to add the part of the code given in that image ? Thanks Upvote 0
Erel said: You just need to put it in the project folder: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/ Click to expand... Hey Erel, Kind of stuck with the same issue were do i find the build gradle under my project to add the part of the code given in that image ? Thanks
DonManfred Expert Licensed User Longtime User Feb 13, 2017 #10 Rajesh Krishnan said: do i find the build gradle under my project to add the part of the code given in that image ? Click to expand... In the IDE integrated MANIFEST-EDITOR (See Menu) Upvote 0
Rajesh Krishnan said: do i find the build gradle under my project to add the part of the code given in that image ? Click to expand... In the IDE integrated MANIFEST-EDITOR (See Menu)