Building and running app via Gradle and Android Studio 2.0 is slower -


i have multi-project (2 modules) of building takes 1/2 min each time. when press run in android studio, have wait every time rebuild app, extremely slow. it's took 6/8 min each time.

enter image description here

is possible automate building process in android studio? or have advice on how make process faster?

here build.gradle file (app module):

allprojects {     repositories {         mavencentral()         maven {  url "https://jitpack.io" }         maven { url 'http://clinker.47deg.com/nexus/content/groups/public' }     } }  apply plugin: 'com.android.application'  dependencies {     compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'     compile filetree(dir: 'libs', include: '*.jar')     compile('com.fortysevendeg.swipelistview:swipelistview:1.0-snapshot@aar') {         transitive = true     }     compile 'com.android.support:multidex:1.0.1'     compile 'com.github.nirhart:parallaxscroll:1.0'      compile 'com.github.amlcurran.showcaseview:library:5.0.0'     compile 'com.android.support:support-v4:22.0.1'     compile 'com.android.support:appcompat-v7:22.0.1'     compile 'com.android.support:design:22.2.+'     compile 'com.rengwuxian.materialedittext:library:2.1.4'     compile 'com.nineoldandroids:library:2.4.0'     compile 'com.daimajia.easing:library:1.0.1@aar'     compile 'com.daimajia.androidanimations:library:1.1.3@aar'     compile 'com.pnikosis:materialish-progress:1.7'     compile 'com.github.fenjuly:arrowdownloadbutton:9e15b85e8a'     compile 'ch.acra:acra:4.5.0'     compile 'com.yalantis:contextmenu:1.0.5'         compile project(':locationlib')     }      configurations {         compile.exclude group: 'javax.inject', module: 'javax.inject'     }      android {         compilesdkversion 22         buildtoolsversion '22.0.1'      compileoptions {          encoding "utf-8"         sourcecompatibility javaversion.version_1_7         targetcompatibility javaversion.version_1_7     }     lintoptions {         abortonerror false     }      dexoptions {         javamaxheapsize "8g"         jumbomode true     }       buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }      packagingoptions {         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/dependencies'         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/lgpl2.1'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/notice'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/index.list'         exclude 'meta-inf/asl2.0'      }     defaultconfig {         targetsdkversion 22         renderscripttargetapi 19         renderscriptsupportmodeenabled false         multidexenabled true     }     productflavors {     }      afterevaluate {         tasks.matching {             it.name.startswith('dex')         }.each { dx ->             if (dx.additionalparameters == null) {                 dx.additionalparameters = []             }             dx.additionalparameters += '--multi-dex'          }     }    }  

my notebook spects i3 8gb ram , windows 10 64bits

actually have android studio 2.0 preview 9 studio64.exe.vmoptions

-xms256m -xmx1280m -xx:maxpermsize=350m -xx:reservedcodecachesize=240m -xx:+useconcmarksweepgc -xx:softreflrupolicymspermb=50 -ea -xx:-omitstacktraceinfastthrow -djna.nosys=true -djna.boot.library.path=  -djna.debug_load=true -djna.debug_load.jna=true -dsun.io.usecanoncaches=false -djava.net.preferipv4stack=true -xx:+heapdumponoutofmemoryerror -xx:-omitstacktraceinfastthrow -didea.paths.selector=androidstudiopreview2.0 -didea.platform.prefix=androidstudio 

and the gradle work offline

you should use android studio 1.5.1 faster prior version of android studio.


Comments

Popular posts from this blog

ios - UITEXTFIELD InputView Uipicker not working in swift -

Hatching array of circles in AutoCAD using c# -

Python Pig Latin Translator -