How to import projects and modules from Android Studio via Git

Asked

Viewed 1,886 times

-1

Hello! Good afternoon. I am a bachelor’s student in information systems and am practicing development for Android. My teacher provided a Git link containing a "pack" of each subject covered in his class, separated by modules/folders. As if the project present in Git was actually several sub projects (we call this Modules, right?). He has developed in the Android Studio IDE and my problem is in importing this project because it seems that during the import, the IDE does not understand these modules as being separate applications and ends up generating bugs either by the manifests or build-related files.

The first question is that I don’t know if I should import from an existing model or from a new one because both an option and another generate different situations with different mistakes. Anyway, I’m pretty wrapped up with this and I would like to know what would be the ideal step by step to perform this import

git link: https://github.com/raphaelframos/devmov1

Link to Screenshots taken: https://postimg.org/gallery/upws86ty/

Problem with migration to Grandle: https://s26.postimg.org/lw9yvc2t5/Sem_t_tulo.jpg

  • You can send us images of the steps you are running to import these files in Android Studio?

    1. https://s26.postimg.org/yzx5p21bt/Sem_t_tulo.jpg 2) https://s26.postimg.org/g3rh57zg9/image.jpg 3) https://s26.postimg.org/vqild89/image.jpg 4) https://s26.postg.org/tzzph3vp5/image.jpg

1 answer

0

Hello, first you should have GIT installed on your PC, do you have it? If the project is on a link you can make a "git clone" by the IDE (Android Studio) that has a native plugin for Version Control, in the case of GIT.

If the project is subdivided into different links you must import for each different link. If the project is subdivided into branches, you only need to make a Fork and submit each change to a branch, via "git pull"

Try to base on this link, which it shows step by step how to proceed.

Link: http://javapapers.com/android/android-studio-git-tutorial/

  • Oops! I have Git installed and I’m already a little familiar with it. But in this specific case, I am not knowing how to import because there are failures. We have several projects called modules, within a "whole". the link to my git is this: https://github.com/raphaelframos/devmov1 for you to understand what this is about.

  • Okay, you can’t make "git clone https://github.com/raphaelframos/devmov1.git" ?

  • After cloning the TODO project, you will import the parts (projects) by the IDE

  • I can but it does not generate the grandle build or I can not explain what is happening but it is not important so that the structure remains as it should be in android studio. the link containing the SS that I have taken, to better understand: https://postimg.org/gallery/upws86ty/

  • but should I clone it from an existing model or a new one? and I tried to add module by module after import but had paths and tals complications. I really wanted to understand better to express myself better here x.x

  • When you clone a project, it creates exactly one copy of the structure defined in git. I recommend you remove the existing one and clone it again. After you clone the project you must open the IDE to import the project from that structure for you to work on. Gradle is the Android dependency manager, like Maven for JAVA projects, so in Android Studio you should have an option to import a Gradle Project. After importing the IDE itself will organize the project for you.

  • I’ll try here and get back to you

  • I can’t seem to figure it out =\

Show 3 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.