Angular 在爱奥尼亚+;角度插件可以';t在android中创建、构建和运行

Angular 在爱奥尼亚+;角度插件可以';t在android中创建、构建和运行,angular,firebase,ionic-framework,firebase-cloud-messaging,ionic5,Angular,Firebase,Ionic Framework,Firebase Cloud Messaging,Ionic5,在安卓系统中安装firebase推送通知插件后,无法在安卓系统中创建构建和运行 我正在安装以下插件: $ ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated $ npm install @ionic-native/fcm 我得到了以下错误: 任务:应用程序:ProcessDebuggGoogleServices 解析json文件:C:\MyApp\u new\platforms\android\app\googl

在安卓系统中安装firebase推送通知插件后,无法在安卓系统中创建构建和运行

我正在安装以下插件:

$ ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated
$ npm install @ionic-native/fcm
我得到了以下错误:

任务:应用程序:ProcessDebuggGoogleServices 解析json文件:C:\MyApp\u new\platforms\android\app\google-services.json


我可以推荐您使用Firebase进行推送通知吗?该插件的所有者在保持其最新方面做得很好,我在很多生产应用程序中使用它。@Sebaferras我使用该插件,但无法获取令牌id
> Task :app:compileDebugJavaWithJavac FAILED
C:\MyApp_new\platforms\android\app\src\main\java\com\ionicframework\cordova\webview\IonicWebViewEngine.java:11: error: package android.support.annotation does not exist
import android.support.annotation.RequiresApi;
                                 ^
C:\MyApp_new\platforms\android\app\src\main\java\com\ionicframework\cordova\webview\IonicWebViewEngine.java:137: error: cannot find symbol
    @RequiresApi(Build.VERSION_CODES.LOLLIPOP)
     ^
  symbol:   class RequiresApi
  location: class IonicWebViewEngine.ServerClient
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.