Cordova error: Using “requireCordovaModule” to load non-cordova module “q” is not supported

后端 未结 14 855
情深已故
情深已故 2020-12-08 12:59

I noticed that the builds on our CI started to fail because of the following error:

Discovered plugin \"cordova-plugin-app-version\" in config.xml. Adding it         


        
14条回答
  •  暖寄归人
    2020-12-08 13:29

    That's it, I found it. It comes from an update to cordova cli @9.0.0 and it's append on existing projects.
    The issue come from cordova-android-support-gradle-release and fixed in version latest.

    So in any case, what you need to do is:
    cordova plugin rm cordova-android-support-gradle-release
    cordova plugin add cordova-android-support-gradle-release@latest

提交回复
热议问题