Building and running app via Gradle and Android Studio is slower than via Eclipse

前端 未结 28 2282
太阳男子
太阳男子 2020-11-22 08:21

I have a multi-project (~10 modules) of which building takes about 20-30 seconds each time. When I press Run in Android Studio, I have to wait every time to rebuild the app,

28条回答
  •  执笔经年
    2020-11-22 09:00

    Please follow the following steps.

    1. Enable offline mode : Please check below print screen.

      https://i.stack.imgur.com/RF9uG.png

    2. Enable Instant Run : Please check below print screen.

      https://i.stack.imgur.com/mvHKJ.png

      If you want to learn more about instant run please visit android developer site.

提交回复
热议问题