Override remote setup to local project just for test

Hi Guys. I am newcomer in this world. I have a project which imports another project as a module through gradle.

I am working a this module and I’ve changed some classes that I would like to test locally.

Is there any way that I can bypass the build.gradle dependency to use my local directory for my .class files?

What I did was: under the module I have set up my local directory. But, it didn’t work.

I know it might sound dumb. As I said I 've never used gradle before.

Thanks