Let's say we have 2 Android Studio (AS) projects with AS has multiple windows enabled.
Project A has VCS dependency of A_ApiModule
Project B has VCS dependency of B_ApiModule
When open project A in AS and let it finished syncing Gradle, everything works just fine here (repo of A_ApiModule is cloned into dir of A/libraries/A_ApiModule).
Now if we'll open project B in another AS window and let it sync Gradle, the scenarios are as follows:
B_ApiModule is correctly cloned into dir of B/libraries/B_ApiModule
After that, content in A_ApiModule dir of A/libraries/A_ApiModule are cleared (except IDE generated file, e.g. *.iml, and the folder itself is not removed)
B_ApiModule is now also cloned into dir of A/libraries/B_ApiModule
Now, when we going back to work on project A again, we'll need to remove VCS dir and resync the Gradle again. Otherwise, the project will failed with message of Destination path "A_ApiModule" already exists and is not an empty directory (since its content is removed as mentioned in 2.)
Updated: Sometime it in this sequence:
B_ApiModule is cloned into dir of A/libraries/B_ApiModule (no VCS dir created in project B directory)
Let's say we have 2 Android Studio (AS) projects with AS has multiple windows enabled. Project
A
has VCS dependency ofA_ApiModule
ProjectB
has VCS dependency ofB_ApiModule
When open project
A
in AS and let it finished syncing Gradle, everything works just fine here (repo ofA_ApiModule
is cloned into dir ofA/libraries/A_ApiModule
). Now if we'll open projectB
in another AS window and let it sync Gradle, the scenarios are as follows:B_ApiModule
is correctly cloned into dir ofB/libraries/B_ApiModule
A_ApiModule
dir ofA/libraries/A_ApiModule
are cleared (except IDE generated file, e.g. *.iml, and the folder itself is not removed)B_ApiModule
is now also cloned into dir ofA/libraries/B_ApiModule
Now, when we going back to work on project
A
again, we'll need to remove VCS dir and resync the Gradle again. Otherwise, the project will failed with message ofDestination path "A_ApiModule" already exists and is not an empty directory
(since its content is removed as mentioned in 2.)Updated: Sometime it in this sequence:
B_ApiModule
is cloned into dir ofA/libraries/B_ApiModule
(no VCS dir created in projectB
directory)B
finished syncing with failed.Gradle 4.6 : Android Studio 3.2.1