Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to share library projects between projects when using Android Studio and gradle?
    primarykey
    data
    text
    <p>I'm struggling to figure out how to import library projects into Android Studio in a fashion that makes them available to multiple projects. The documentation for the new build system implies that you need to import library projects into the root of the project you are working on:</p> <blockquote> <p>Gradle projects can also depend on other gradle projects by using a multi-project setup. A multi-project setup usually works by having all the projects as sub folders of a given root project (<a href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Multi-project-setup" rel="nofollow">http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Multi-project-setup</a>)</p> </blockquote> <p>This is problematic since, as I mentioned above, I would like to keep frequently-used libraries accessible to all current and future projects. For example, I am currently trying to integrate Volley into a new project to evaluate it, with the assumption that I will want to use it in multiple other projects in the future. I cloned it to my "${PROJECT_ROOT}/" folder, which is the same level at which I created my test project, giving me:</p> <p>${PROJECT_ROOT}/TestProject/Test<br /> ${PROJECT_ROOT}/volley</p> <p>After trying to set up my project's build.gradle file in a variety of ways, the only way that I've managed to make the app compile is to move Volley into the TestProject 'main' project, giving me:</p> <p>${PROJECT_ROOT}/TestProject/Test<br /> ${PROJECT_ROOT}/TestProject/volley</p> <p>Not only does this prevent me from using Volley in other projects that are not a part of TestProject without duplicating it or cloning it a second time, but it means that git wants me to add it to the repo I've established at the root of TestProject. </p> <p>How can I reference library projects in my Android Studio projects without including them in the projects themselves?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload