How to use class from another project

(Tran Tuan Anh) #1

I have a project Test and project Test 2. The project Test have modul A, modul B. In modul B is a kotlin class.
How can I use kotlin class in project Test 2 in some modul ? How can I integrate class from Test to Test2 without copy the class ? Can someone help me please? Thank u.

(uklance) #2

I suggest you read the documentation for multi project builds

(Tran Tuan Anh) #3

I read it. but it cant help me :confused:

(uklance) #4

You’ll use a project dependency. Eg:

dependencies {
   compile project(':projectX')
   testRuntime project(':projectY')