FAILURE: Build failed with an exception in ionic 4

杀马特。学长 韩版系。学妹 提交于 2019-12-11 05:39:11

问题


I have created an app called phone(ionic v-4). I have tried to implement Phone authentication i,e OTP verification using firebase by following this article in the medium.

Now i tried to deploy my app(phone) in my android device, using below command.

ionic cordova run android

I am getting this error:

But the app runs fine in the browser.

I am unable to perceive the error.


回答1:


Do try to remove and add again the Android platform

ionic cordova platform rm android
ionic cordova platform add android



回答2:


Do this:

 ionic cordova plugin rm cordova-plugin-firebase



 ionic cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

and see this link

Ionic build issue -firebase



来源:https://stackoverflow.com/questions/56373322/failure-build-failed-with-an-exception-in-ionic-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!