Failed to execute aapt with cordova

后端 未结 5 1754
小鲜肉
小鲜肉 2020-12-13 18:06

I am working on a cordova project that has been working fine for a while, and suddenly I started to get a very strange error whenever the build reaches \":app:processArm64De

5条回答
  •  我在风中等你
    2020-12-13 19:08

    For those who facing this issue after 17/06/2019. After spending number of hours on this issue finally found the solution. This build failure is due to a Major version release of the Google Play Services and Firebase on 17/06/2019

    ionic cordova platform rm android
    ionic cordova platform add android@8.0.0 
    ionic cordova plugin add cordova-plugin-androidx 
    ionic cordova plugin add cordova-plugin-androidx-adapter
    

    Note: This will resolve your issue

    Note: If you are using cordova-plugin-firebase and encountering errors, you can use this plugin which is published as cordova-plugin-firebasex and is fixed to resolve issues caused by the new Firebase SDK:

    rm -Rf platforms/android
    cordova plugin rm cordova-plugin-firebase
    rm -Rf plugins/ node_modules/
    npm install
    cordova plugin add cordova-plugin-firebasex
    cordova platform add android
    

    I hope this will help.

    cheers!

提交回复
热议问题