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 }