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

后端 未结 7 1423
一个人的身影
一个人的身影 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:21

    I had the same problem which I solved using the -d flag to show debug output

    cordova -d platform add android
    

    My debug output showed that I need to set a JAVA_HOME environment variable and then I needed to add JAVA and ANT to the path.

提交回复
热议问题