# Android Studio import from github and use source code

**URL:** <https://discuss.gradle.org/t/android-studio-import-from-github-and-use-source-code/16972>\
**Category:** Help/Discuss\
**Tags:** plugins\
**Created:** [April 23, 2016, 9:18am UTC](https://discuss.gradle.org/t/android-studio-import-from-github-and-use-source-code/16972 "2016-04-23T09:18:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guerlando](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@guerlando](https://discuss.gradle.org/u/guerlando)\
**Post date:** [April 23, 2016, 9:18am UTC](https://discuss.gradle.org/t/android-studio-import-from-github-and-use-source-code/16972/1 "2016-04-23T09:18:13Z")

</div>

Hi, I have the following project on Android Studio:

app/java/com.myname.myapp

And I imported a project from github, also mine. I didn’t know which folder to use so I put in the following:

app/java

The Android Studio saved as this:

app/java/MyLibraryFromGithub/

inside MyLibraryFromGithub, there is:

com.myname.MyLibrary

in which there are my source files, but there are other things inside MyLibraryFromGithub as well (but I’m not gonna use them for this project)

Since I cannot import directly inside /java in a way that both files would end up in the same com/myname/ folder, I need a way to ‘link’ this newly included github project. I could move MyLibrary directly in a way that I would end up with:

app/java/com.myname.myapp  
app/java/com.myname.MyLibrary

but I want to make use of the automatic Android Studio integration with github. I think this has something to do with ‘include’ but I couldn’t find a satisfatory way to understand it, as settings.gradle is inside app, and I need to include something inside /java/, and also there is the problem that myapp and MyLibrary need to be in the same com.myname directory.
