【问题标题】:Gradle build keeps runningGradle 构建继续运行
【发布时间】:2016-04-04 21:23:07
【问题描述】:

Gradle 继续在 IntelliJ 上运行,并在“Gradle build using tasks: [: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'
}

【问题讨论】:

  • 你可能想将你的 build.gradle 文件添加到这个问题中
  • @TooManyEduardos iv 添加了 build.gradle 文件

标签: android intellij-idea gradle


【解决方案1】:

好的,我可以通过将构建工具版本更新到 24 来解决它。

【讨论】:

    猜你喜欢
    • 2015-05-13
    • 1970-01-01
    • 2013-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多