Invalid VCS root mapping - 3 errors on my project

荒凉一梦 提交于 2020-12-30 05:10:17

问题


When I import project to Android Studio, I found this errors:

  • Error:No resource found that matches the given name (at 'label' with value '@string/filter_title_awesomeChat').

  • Error:No resource found that matches the given name (at 'label' with value '@string/filter_title_awesomeChat').

  • Error:Execution failed for task ':app:processFreeReleaseResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt

    Invalid VCS root mapping

    The directory C:\Users\alfayed\Desktop\awesome-chat is registered as a Git root, but no Git repositories were found there.

Screenshot of errors


回答1:


Make sure the project was cloned and not downloaded as a zip into the directory you are using (there should be C:\Users\paula\Git\OpenTripPlanner.git directory on your disk). and make sure your gpath to git executable is indicating the correct path.




回答2:


For the Invalid VCS root mapping error you can fix it by deleting the vcs.xml file located in the .idea folder of your project and then rebuild your project.




回答3:


The three Gradle Build errors seems separate from the invalid VCS root mapping error.

  • For the invalid VCS root mapping error, you can go to the root of the project C:\Users\alfayed\Desktop\awesome-chat, and create a git repo by git init.

  • For the three Gradle Build errors, you can debug the details with the source code.




回答4:


For the Invalid VCS root mapping error, you can fix it by deleting the vcs.xml file located in the .idea folder of your project and then Reopen your IDE.




回答5:


For resolving "Invalid VCS root mapping"

Make sure the project was cloned and not downloaded as a zip into the directory you are using (there should be C:\Users\alfayed\Desktop\awesome-chat.git directory on your disk).




回答6:


all you need is to delete the vcs.xml file inside an .idea folder this works!




回答7:


For the Invalid VCS root mapping error, deleting the .idea folder of your project and then rebuild your project.




回答8:


When you clone your project from git make sure you do:

git clone --recursive YOUR-GIT-URL

or if you have already cloned then to fix it:

git submodule init
git submodule update


来源:https://stackoverflow.com/questions/46311661/invalid-vcs-root-mapping-3-errors-on-my-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!