Could not find method android() for arguments
You are using the wrong build.gradle file. In your top-level file you can’t define an android block. Just move this part inside the module/build.gradle file. android { compileSdkVersion 17 buildToolsVersion ‘23.0.0’ } dependencies { compile files(‘app/libs/junit-4.12-JavaDoc.jar’) } apply plugin: ‘maven’