插件与ID的Andr​​oid找不到 [英] Plugin with id Android not found

查看:172
本文介绍了插件与ID的Andr​​oid找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新詹金斯并运行我的第一个版本。我使用gradle这个做的构建,但一直得到以下错误

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.

我已经寻找了近2天,试图安装其他Android插件,但不能似乎解决了这个问题。

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

我已经在全局属性建立在詹金斯的ANDROID_HOME变量。确信路径是正确的。

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

任何帮助将大大AP preciated。在此先感谢

Any help would be greatly appreciated. Thanks in advance

推荐答案

我已经在bundle.gradle文件的顶部添加以下code固定它

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 :)

这篇关于插件与ID的Andr​​oid找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆