【问题标题】:Ionic 3 - Add plugins to build.gradle filesIonic 3 - 将插件添加到 build.gradle 文件
【发布时间】: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


    【解决方案1】:

    您可以尝试以下两个插件。我过去使用过它们,并且似乎已经完成了这项工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-28
      • 1970-01-01
      • 1970-01-01
      • 2018-12-07
      • 1970-01-01
      • 2020-12-22
      • 2018-08-05
      • 2014-01-09
      相关资源
      最近更新 更多