信息:分级任务[:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:createMockableJar]

时间:2018-10-18 11:28:54

标签: android android-studio gradle

我是Android App开发的新手。当我尝试创建一个新项目Android Project时,弹出以下消息:

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:createMockableJar]

这是我的项目的屏幕截图:

enter image description here

1 个答案:

答案 0 :(得分:-1)

如果您使用com.google.gms:google-services请提供我的解决方案并解决您的问题

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

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

          classpath 'com.google.gms:google-services:3.2.1'
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}

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