无法找到构建工具修订版 25.0.0

问题描述

我尝试将项目设置中的构建工具版本设置为 25.0.0。并且还要添加正确的 apply plugin 语句(您会在屏幕截图中找到它)。我也尝试将项目与 Gradle 文件同步,尽管我认为这个问题与此无关。

基本上确保它在那里。我还下载并更新了所需的 SDK。我会附上截图。

build.gradle 文件截图 https://i.stack.imgur.com/ardbH.png

项目结构设置 > 模块 https://i.stack.imgur.com/jRR09.png

SDK 信息 https://i.stack.imgur.com/1n4jr.png

Build.gradle 文件(项目级)

// 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.2.2'
        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()
    }
}

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

依赖

dependencies {
    compile fileTree(dir: 'libs',include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',{
        exclude group: 'com.android.support',module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.0.1'
    compile 'com.google.firebase:firebase-database:9.0.2'
    compile "com.google.firebase:firebase-auth:9.0.2"
    compile 'com.firebase:firebase-client-android:2.3.1'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)