0

How to synchronize android studio

Hello guys. I have a Laptop and a PC and I am using both of them for coding android apps. I always have the problem that the code that I have written on my PC isn't on my laptop and the other way around. Is there any way to synchronize the two? Thanks in advance.

26th Apr 2024, 9:21 PM
Kuchenesser
12 Antworten
+ 3
27th Apr 2024, 12:34 AM
Brian
Brian - avatar
+ 3
I don't think you have to rename the newest version. However, I've never tried it. I'm not as well versed with GitHub as I should be either.
30th Apr 2024, 5:26 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
I've never looked. If there isn't, I'm sure there's interest there and could earn you a bit of positive rep if you were to create it 😉
27th Apr 2024, 11:41 AM
Ausgrindtube
Ausgrindtube - avatar
+ 2
I saw that you can sign in with your Google account and have cloud functionality. I haven't tried it yet, but if this works, that would be a solution for my problem(and for everyone else who wants to synchronize android studio code between two PCs).
30th Apr 2024, 3:39 PM
Kuchenesser
+ 1
In theory, you could push your code each time to github and then pull it onto the other device.... You might have to copy the files out of Android Studio to do it.
27th Apr 2024, 8:42 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
I've just looked at my Android Studio and under the tab VCS, there are "Share project on Github"/"Create Github Repository" options... among others. Might be worthwhile checking out.
28th Apr 2024, 2:32 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
I tried it and it uploaded my code to Github. But as far as I know, the code doesn't get automatically uploaded and I always have to rename the newest version. Or am I wrong?
28th Apr 2024, 5:09 PM
Kuchenesser
+ 1
I meant that if I have uploaded one file and want to upload a new file later, I have to rename the file I want to upload now because one with the same name I would like to upload already exists.
1st May 2024, 5:23 AM
Kuchenesser
+ 1
But you can replace the older version and GitHub is supposed to keep a record of the changes, right?
1st May 2024, 7:30 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Ah yes that's right
1st May 2024, 10:25 AM
Kuchenesser
0
Is there also no option to synchronize via GitHub? like in Intellij.
27th Apr 2024, 6:03 AM
Kuchenesser
0
Oh yeah that would be a solution. But is it possible to automate that?
27th Apr 2024, 9:03 AM
Kuchenesser