2016-04-04 97 views
0

Gradle一直運行在IntelliJ上,並被凍結在「使用任務的Gradle構建:[:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:compileDebugSources,:app:compileDebugAndroidTestSources]」中。我從昨天開始一直在尋找解決方案,但沒有運氣。Gradle構建繼續運行

的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' 
} 
+0

你可能想你的build.gradle文件添加到這個問題 – TooManyEduardos

+0

來解決它@ TooManyEduardos iv增加了build.gradle文件 –

回答

0

好了,所以我能夠通過更新生成工具版本24.