【发布时间】:2018-10-16 12:27:32
【问题描述】:
要将 Firebase 与我的 Ionic 3 android 应用程序链接,我需要将这些行添加到 platforms/android/build.gradle :
buildscript {
dependencies {
// Add this line
classpath 'com.google.gms:google-services:4.0.1'
}
}
和platforms/android/app/build.gradle:
dependencies {
// Add this line
implementation 'com.google.firebase:firebase-core:16.0.1'
}
...
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
有没有办法在不直接编辑build.gradle 文件的情况下实现这一点?
【问题讨论】:
标签: android firebase ionic-framework ionic3