简体   繁体   English

在 ionic v3 中在真实设备中运行应用程序时出错

[英]Error while running app in real device in ionic v3

I am a newbie to Ionic 3.我是 Ionic 3 的新手。
I am trying to run it on real a device using below CLI:我正在尝试使用以下 CLI 在真实设备上运行它:

ionic cordova run android    

It runs perfectly before I added firebase in it.在我添加 firebase 之前它运行得很好。

I want firebase token for notification.我想要用于通知的 Firebase 令牌。

I followed the instructions at https://ionicframework.com/docs/v3/native/firebase/我按照https://ionicframework.com/docs/v3/native/firebase/ 上的说明进行操作

Error:错误:

在此处输入图片说明

If you want to use firebase in an ionic project, then use the following plugin:如果要在 ionic 项目中使用 firebase,请使用以下插件:

https://github.com/dpa99c/cordova-plugin-firebasex https://github.com/dpa99c/cordova-plugin-firebasex

Your Android build may fail if you are installing multiple plugins that use the Google Play Services library.如果您安装多个使用 Google Play 服务库的插件,您的 Android 构建可能会失败。 This is caused by plugins installing different versions of the Google Play Services library.这是由安装不同版本的 Google Play 服务库的插件引起的。 This can be resolved by installing cordova-android-play-services-gradle-release which enables you to override the versions specified by other plugins in order to align them.这可以通过安装 cordova-android-play-services-gradle-release 来解决,它使您能够覆盖其他插件指定的版本以对齐它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM