Gradle继续在IntelliJ上运行,并冻结在“使用任务构建Gradle:[:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:compileDebugSources,:app:compileDebugAndroidTestSources]”中。从昨天开始,我一直在寻找解决方案,但是没有运气。

Build.Gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.example.predator.myapplication"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.1'
}

最佳答案

好的,我能够通过将构建工具版本更新为24来解决它。

10-02 06:14
查看更多