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

来源:互联网 发布:ps色环插件 for mac 编辑:程序博客网 时间:2024/06/05 00:43
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'//已经下载的版本    }}
                                             
0 0