Search code examples
gitandroid-studioversion-control

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


Solution

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