Link Java Modules problem

Hi, before all I’m new on the gradle world so sorry if my question my sound very stupid, however yes I did put some effort looking for an answer before asking…

Context: I’m using Android Studio what uses gradle on a Mac.

I created a project what it runs perfect (compile, debug and so on) However I need to add some java modules (utilities) but are placed not as subfolders of my project root.

On the Android studio compilation works fine as I set the dependencies but when it comes to debug (gradle is used) the package from the java modules are not found…

Gradle: package com.x.x does not exist

My build.gradle

buildscript {

repositories {



dependencies {

classpath ‘’

} } apply plugin: ‘android’

repositories {

mavenCentral() }

dependencies {

compile ‘’ }

android {

compileSdkVersion 17

buildToolsVersion “17.0.0”

defaultConfig {

minSdkVersion 7

targetSdkVersion 16

} }

On my settings.gradle I have:

include ‘:projectName’ include ‘JavaModuleName’

Any idea what is wrong or is just not possible to have a module in a upper folder?