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

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

    For cordova 3.x users:

    Create ".cordova" file at root in the project.

    "isCordova" returns true if finds ".cordova" file at line 42 https://github.com/apache/cordova-cli/blob/cordova-3.1.x/src/util.js


    "Current working directory is not a Cordova-based project." causes at line 31 in plugin.js https://github.com/apache/cordova-cli/blob/cordova-3.1.x/src/plugin.js

    0 讨论(0)
提交回复
热议问题