cordova platform add android gives the error: “Error: The provided path is not an Android project.”

后端 未结 7 1297
一个人的身影
一个人的身影 2021-02-02 13:24

When I run the command, I get the error:

C:\\Users\\me\\adtworkspace\\project1>cordova platform add android [Error: The provided path \"C:\\Users\\me\

7条回答
  •  星月不相逢
    2021-02-02 14:06

    If you were to do a "cordova -d platform add android", you'll probably see that it is because a prior error happened due to "There is no script engine for file extension ".js"".

    Windows associated .js files with some other editors, so you have to disassociate this by typing:

    assoc .js=JSFILE

    After doing this, just run the add platform ("cordova platform add android") command again and it should work fine.

提交回复
热议问题