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

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

    This is happening when you missing some files in your android platform folder in your cordova project.

    Same thing can happen with the windows projects as well.

    Visual Studio or Cordova engine has the capability of creating platform directories even if you delete them. But in this case the folder was there and it had some files in it. So the best solutions for this issue is trying one of these steps.

    Clean your project. ( Visual Studio ) Rebuild your project ( Visual Studio ) Delete platform directory that you have the issue and build the project.

提交回复
热议问题