Last active
September 15, 2017 07:33
-
-
Save deepakpk009/9a1d1295062a5f53dac79cbe8ec1c050 to your computer and use it in GitHub Desktop.
Error:Project :app declares a dependency from configuration 'compile' to configuration 'default'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error:Project :app declares a dependency from configuration 'compile' to configuration 'default' | |
which is not declared in the descriptor for project :<project-name>. | |
this happens when you have submodules in your project, | |
to fix this clone using recursive git command: | |
git clone --recursive https://github.com/developer-id/project.git | |
now go to the submodule folder and check the git repo version by: | |
git remote -v | |
if the git repo points to the main project repo that means the | |
submodule git config is not pulled/added | |
so from this submodule folder enter: | |
git init | |
then update the remote submodule url using: | |
git remote add origin "https://github.com/user-id/submodule.git" | |
now check if rmote is updated: | |
git remote -v | |
no fetch from the submodule git: | |
git fetch | |
now if you want a particular branch checkout that branch: | |
git checkout origin/branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment