Tuesday, March 27, 2018

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


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.