Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio GIT check-out loses module

I am using Android Studio 0.89 fine and have added support for GIT on cloudforge. All looks to be working perfectly as I can commit and push and in cloudforge I can see the commits and far as I can see it is all there.

BUT if I check out the main branch (which is the only branch currently), it imports OK, but when Android Studio opens it I get the following error message:

Would you like to remove the VCS root '/.../.../..... for the removed module 'ZIPGM28OCT2014'?

If I say yes it opens with a Framework missing and asks you to configure and no modules are visible. What I ever I do here does not matter there is no module to be able to build.

If I say no - I then I can see the module but it has red cross against it and when I build there is not module. If you go to project>structure you see the information in the sreen shot.

I have gone around in circles with this and not getting anywhere. I have tried most things I have found on stack overflow and else where but without any luck. There some info on gitignore, which I do not have, but not sure why that should effect the loss of a module.

If I just copy the whole directory on this mac or on another and open it in Android Studio is works perfectly!

Any help or pointers on what I am doing wrong would be very much appreciated. As love Android Studio and from what I have seen from GIT it is great, I just can not get the two working together.

VCS Error message

Project Structure

If I am missing anything that would help - please let me know.

like image 479
ZipNFC Avatar asked Oct 28 '14 18:10

ZipNFC


1 Answers

File > Invalidate Caches / Restart

it's work in my case

like image 113
Twibap Avatar answered Sep 27 '22 18:09

Twibap