Androidstudio error(1,0)错误,和(2.0)错误

Error:(1, 0) Plugin with id 'android' not found.

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'//1.2.0,1.3.0
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}
再更新。
或者:
http://stackoverflow.com/questions/24795079/error1-0-plugin-with-id-com-android-application-not-found

dependencies {
    classpath 'com.android.tools.build:gradle:1.3.0'
  

    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'//添加或替换
    classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'//添加或替换
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

 
错误:Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "693e8a773f76c66153c045392447148610fc80ef"
<a href="fixGradleElements">Fix plugin version and sync project</a><br><a href="openFile:D:\workspaceAS\ToolbarPaletteDemo\app\build.gradle">Open File</a>
修改:
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.2.3'//已经下载的版本
    }
}

                
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值