Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 515c871

Browse files
Firebase init fails on android device #39
1 parent 2e68451 commit 515c871

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,22 @@ tns plugin add nativescript-plugin-firebase
3030
```
3131

3232
### Android
33-
- Open `platforms/android/build.gradle`
33+
[Installpackages Google Play Services and Google Repository in your Android SDK Manager](http://stackoverflow.com/a/37310513)
34+
35+
#### Open `app/App_Resources/Android/app.gradle`
36+
- Add `applicationId "com.example.app"` to the `defaultConfig` node (change the id to the same as in your app's `package.json`), so it becomes:
37+
38+
```
39+
android {
40+
...
41+
defaultConfig {
42+
applicationId "com.example.app"
43+
...
44+
}
45+
}
46+
```
47+
48+
#### Open `platforms/android/build.gradle`
3449
- Near the top there's a dependencies section, add `classpath "com.google.gms:google-services:3.0.0"` so it becomes something like:
3550
```
3651
dependencies {

0 commit comments

Comments
 (0)