cannot find symbol import com.google.firebase.iid.FirebaseInstanceIdService error in ionic3

前端 未结 6 1756
礼貌的吻别
礼貌的吻别 2021-01-01 17:26

I Have no idea why I am getting this error whenever I try to create my app\'s build.I have tried many solutions but I was unable to solve this.i don\'t know if any plugins

6条回答
  •  借酒劲吻你
    2021-01-01 18:14

    This issue occurs due to major firebase release to support AndroidX

    Solution:

    1. Remove android platform(I followed this step. but there should be workaround which I might not know) - cordova platform rm android

    2. Remove old firebase plugin - cordova plugin rm cordova-plugin-firebase

    3. Add new firebase plugin - cordova plugin add cordova-plugin-firebasex

    4. Again add platform - cordova platform add android

    Now your build will succeed.

提交回复
热议问题