


(Don't have Git? You can download it from here)Ģ) Copy the path to git and open up a Command Prompt/ Terminal window and type " cd path/to/git" WITHOUT GIT.EXE ON THE END. Make sure this does have a correct path, and is in fact leading to a real git.exe file, else you'll get the error Can't start Git: git.exe - Probably the path to Git executable is not valid. Go into File > Settings > Version Control > Git and find the Path to Git executable. Just because your project is refusing to compile after you’ve imported a cloned repository, doesn’t necessarily mean that it’s going to have the same reaction if you try to use that same library as a remote dependency.Did you manage to get this sorted in the end? If not, I'll provide some instructions below to help you and any other students that may encounter this issue out:ġ) Find the git.exe file. And if all else fails… Getting third party software to work correctly sometimes requires a bit of trial and error, so if there’s an alternate method of importing your chosen library, then it’s always worth trying.Sometimes, selecting ‘Build > Clean project’ from the Android Studio toolbar, followed by ‘Build > Rebuild project,’ may be enough to solve your problem. You may even get lucky and find a blog or a tutorial that includes instructions on how to resolve this exact issue. There’s always a chance that other people may have encountered the same issue as you, so perform a quick Google search to see whether anyone has posted about this issue on forums, or communities like Stackoverflow. If a library appears in this window multiple times, then select the duplicate, and click the little ‘-’ icon to remove it. You can review your module’s dependencies by selecting ‘File > Project structure’ from the Android Studio toolbar, then selecting the module you want to examine, and clicking the ‘Dependencies’ tab. If Android Studio is reporting a “multiple DEX files define…” error, then you may have added the same library to your project more than once. Check that you haven’t accidentally added multiple versions of the same library.If you do run into problems after adding a library to your project, then try the following fixes:
