Failed to execute aapt with cordova

后端 未结 5 1750
小鲜肉
小鲜肉 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 18:57

    This happened to me in July 2020 on a Ionic V1 project, my way to fix it was to upgrade cordova-android from 7.1.4 to the most recent, which was 9.0.0 at the time, and also change the min android sdk version.

    ionic cordova platform rm android
    
    // if your project had much trouble building and you prefer a clean build, you may do:
    // rm -rf node_modules platforms plugins package-lock.json
    // npm install (and maybe npm audit fix later)
    
    ionic cordova platform add android@latest
    

    In config.xml, change or add this (the value 22 may be different in your time):

    
    

    And finally I was able to build with

    ionic cordova build --release android
    

提交回复
热议问题