Reputation: 420
I have some projects in directory
Dir
|____ Progect 1
|____ Progect 2
|____ Progect 3
In project 1 i need use class from project 2. How do I get the required dependencie on the project 1
Upvotes: 0
Views: 75
Reputation: 28653
assuming you're building a java project, in the build script of project one, just declare a project dependency:
//project1/build.gradle
dependencies{
compile project(":project2")
}
Upvotes: 0
Reputation: 214
import Project 1 under of it import Project 2 and Project 3 as Module.And Select Project Structure it will show window in that select dependencies Choose those two projects as ModuleDependency.
Upvotes: 2