1

我正在使用 Android Studio 1.5 版。构建一个 apk 需要很长时间(几乎 10-15 分钟)。我在具有 4GB RAM 和 500GB 硬盘空间的 Windows 8.0 中运行工作室。这是应用程序的 build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.example.example"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 6
        versionName "1.0.3"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])

    compile 'com.google.code.gson:gson:2.3.1'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.rengwuxian.materialedittext:library:2.1.3'
    compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
    compile 'com.google.android.gms:play-services-maps:8.3.0'
    compile 'com.google.android.gms:play-services-location:8.3.0'
    compile 'com.github.rey5137:material:1.2.1'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.github.dexafree:materiallist:3.0.1'
    compile('com.mikepenz:materialdrawer:3.1.2@aar') {
        transitive = true
    }

}

我已将 multidexEnabled 设置为 true,但问题仍然存在。请帮忙。

4

0 回答 0