Why Android Studio rebuilds project so slow even when no changes in sources?

后端 未结 4 468
后悔当初
后悔当初 2021-02-05 07:05

When I make some changes in source code, Android Studio (actually gradle) needs to rebuild the project. It\'s obvious.

Why the second build takes almost the sam

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-05 07:09

    Finally, I found the solution: turn on Offline work for gradle.

    enter image description here

    or using CLI:

    ./gradlew --offline assembleDebugOrWhatever

提交回复
热议问题