Android Studio Gradle Build takes more than 5 minutes

前端 未结 3 907
梦如初夏
梦如初夏 2021-02-04 06:11

So I have been working on a simple app in Android Studio and since last couple of days, whenever I click \"Run\", it takes more than 5 minutes to build. It didn\'t used to be th

3条回答
  •  悲&欢浪女
    2021-02-04 06:19

    In gradle.properties you can try using:

    org.gradle.jvmargs=-Xmx2048m
    org.gradle.caching=true
    

    Hope this helps !!

提交回复
热议问题