android studio 2.0 错误记录

android studio 2.0 默认使用

classpath 'com.android.tools.build:gradle:2.0.0-alpha3'

无法运行.改为 1.3.0 之后可以运行但是 app 不会出现在 debug 菜单中...蛋疼好几天之后发现修改项目 build.gradle 中的 jcenter 就可以使用 2.0.0 了.

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter {
            url "http://jcenter.bintray.com/"
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-alpha3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter {
            url "http://jcenter.bintray.com/"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}


你可能感兴趣的:(android,Studio)