[Error: Current working directory is not a Cordova-based project.]

前端 未结 9 1557
不知归路
不知归路 2020-12-17 07:52

I created a Phonegap project according to instructions, checked it into SVN, checked it out and then discovered I could no longer run the build command--necessary to have ch

9条回答
  •  没有蜡笔的小新
    2020-12-17 08:08

    Doing some searching, I found quite a few complaints about the PhoneGap documentation, but eventually figured this out on my own.

    when creating a project, a hidden .cordova folder is created with some project information. For whatever reason, this didn't go into the repository the first time. I copied it over to the checked-out version and fortunately, now Cornerstone sees it and will let me check it into SVN so other team members will not run into this issue.

    If you get this error, there's probably a problem with the hidden .cordova folder inside your project folder. Either recreate the project in PhoneGap, or copy it over if you have another version of that same project.

提交回复
热议问题