2017-07-14 67 views
0

到目前为止,我只在我的工作中使用过电脑,而今天我试图在家用电脑上设置自己的项目,但目前还没有运气。Android studio 3.0 - 无法运行应用程序

我想它必须与gradle配置或android studio 3.0,但设置是相同的两台计算机,我没有错误,但不能点击运行按钮,添加运行配置也不工作。

我gradle这个:

buildscript { 
    repositories { 
     mavenCentral() 
     jcenter() 
     mavenLocal() 
     maven { url 'https://maven.google.com' } 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:3.0.0-alpha6' 
     classpath 'com.google.gms:google-services:3.0.0' 
     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
     mavenCentral() 
     maven { url 'https://maven.google.com' } 
     maven { url "https://jitpack.io" } 
     maven { url 'http://github.com/wada811/Android-Material-Design-Colors/raw/master/repository/' } 
    } 
} 

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

回答

0

我不知道这是否会帮助,但我gradle.build这是我的应用程序。也许尝试使用我的?或者你的android工作室升级,我知道以前的有bug。新版本似乎总是运行更流畅

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

 
buildscript { 
 
    repositories { 
 
     jcenter() 
 
    } 
 
    dependencies { 
 
     classpath 'com.android.tools.build:gradle:2.3.2' 
 

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

 
allprojects { 
 
    repositories { 
 
     jcenter() 
 
    } 
 
} 
 

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

相关问题