Cordova Android build error “Cannot read property 'length' of undefined”

后端 未结 4 1933
误落风尘
误落风尘 2021-01-14 03:46

I have an older cordova project that I am updating. As a part of this process, I removed the android platform and readded it.

Now when I try to build the project I g

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-14 04:00

    You can downgrade cordova cli using

    npm install -g cordova@6.4.0
    

    and build the project with give command

    ionic cordova build android
    

    no need to add platform, it'll automatically add. If it ask to update cordova cli, then choose no

提交回复
热议问题