You should probably take a look at the Gradle Plugin for Android User Guide .
Gradle, by default, requires a specific directory structure. If you want to use Gradle with the directory structure that most Android developers are used to, you will need to put the following (from the above link) inside the android block.
sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } }
Once you have done this, do a cleanup and rebuild to be safe.
Personally, I just adapt my projects in accordance with the new agreement.
source share