Android Studio GRADLE BUILD非常慢

时间:2015-10-14 13:35:58

标签: java android time gradle build

当我在android studio中运行我的项目时,编译需要很长时间, 通常需要3-5分钟。

在Gradle控制台中,它停留了很长时间:: app:dexDebug

如何减少时间???

my bulild.gradle

apply plugin: 'com.android.application'
android {
 compileSdkVersion 23
 buildToolsVersion "23.0.1"

defaultConfig {
    applicationId "it.unical.mat.myapp"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
 }
}
dependencies {
 compile 'com.android.support:multidex:1.0.0'
 compile fileTree(include: ['*.jar'], dir: 'libs')
 compile 'com.android.support:appcompat-v7:23.0.1'
 compile 'com.android.support:support-v4:23.0.1'
 compile 'com.google.android.gms:play-services:8.1.0'
 compile files('libs/activation.jar')
 compile files('libs/gdata-analytics-2.1.jar')
 compile files('libs/gdata-core-1.0.jar')
 compile files('libs/gdata-spreadsheet-3.0.jar')
compile files('libs/jsr305.jar')
compile files('libs/mail.jar')
compile files('libs/guava-18.0.jar')
}

0 个答案:

没有答案