Cordova: You may not have the required environment or OS to run this project

后端 未结 12 2095
半阙折子戏
半阙折子戏 2020-12-10 04:24

On Linux Mint 17.1 x86_64, Cordova v4.3.0 gives this error:

$ cordova run android

Running command: /home/naman/test/platforms/android/cordova/run 
WARNING :         


        
12条回答
  •  悲哀的现实
    2020-12-10 05:01

    For others having this problem, assuming you have already checked and fixed any environment variables using @Naman Dixit's answer, you may also have to remove and add your platforms:

    cmd:  cordova platform rm [platform(s) of interest]
    

    delete everything in the [yourproject]/platforms folder. Then:

    cmd:  cordova platform add [platform(s) of interest]
    

    that was the final step I needed to get everything to work

提交回复
热议问题