2

New to jenkins and was running my first build. I am using gradle to do the build but kept getting the following error

FAILURE: Build failed with an exception. * Where: Build file '/Test/build.gradle' `line: 1' * What went wrong: A problem occurred evaluating root project 'ComitTest'. > Failed to apply plugin [id 'android'] > Plugin with id 'android' not found. 

I have searched for almost 2 days and have tried installing other android plug ins but cant seem to solve this issue.

I have set up on jenkins the ANDROID_HOME variable under global properties. Made sure the path is correct.

Any help would be greatly appreciated. Thanks in advance

1
  • Can you post all of your "build.gradle" filse and the directory of the project. Thanks. Commented Dec 8, 2014 at 2:19

1 Answer 1

2

I have fixed it by adding the following code at the top of the bundle.gradle file

buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } 

Thanks for your help :)

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.