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

Commit

Permalink
Firebase init fails on android device #39
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed May 31, 2016
1 parent 2e68451 commit 515c871
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,22 @@ tns plugin add nativescript-plugin-firebase
```

### Android
- Open `platforms/android/build.gradle`
[Installpackages Google Play Services and Google Repository in your Android SDK Manager](http://stackoverflow.com/a/37310513)

#### Open `app/App_Resources/Android/app.gradle`
- 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:

```
android {
...
defaultConfig {
applicationId "com.example.app"
...
}
}
```

#### Open `platforms/android/build.gradle`
- Near the top there's a dependencies section, add `classpath "com.google.gms:google-services:3.0.0"` so it becomes something like:
```
dependencies {
Expand Down

0 comments on commit 515c871

Please sign in to comment.