简体   繁体   中英

android studio more than 15minutes build time

I have just migrated from eclipse and now using android studio for development. The build time for my app exceeds more than 15 minutes and I don't know why. This, compared to my previous eclipse build is far far slow. I don't know if I'm doing this the right way. I'm using a Dell Inspiron Laptop with intel i3 processor , 4GB RAM . The memory usage of AS is approx 1100 Mb

I have tried the following: -> using

dexOptions {
    incremental true
    javaMaxHeapSize "4g"
}

-> using

org.gradle.parallel=true
org.gradle.daemon=true

I'm using 3 support libraries namely appcompat, cardview, design

on running the application, most time is spent doing the task assembleDebug.

I'm not sure if its relevant but I'm using GenyMotion Emulator to debug.

solved it by checking 'Offline work' in 'Global Gradle Settings'.

在此处输入图片说明

There have a problem with enabling this option, while need some updates or downloads for gradle it will show error message.

Thanks...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM