Invalid Vcs Root Mapping - 3 Errors on My Project

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

8 Answers

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

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.

0

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.

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.

1

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

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

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).

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest