android studio 2.0 默认使用android
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
没法运行.改成 1.3.0 以后能够运行可是 app 不会出如今 debug 菜单中...蛋疼好几天以后发现修改项目 build.gradle 中的 jcenter 就可使用 2.0.0 了.shell
// 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 }