When should I synchronize and when should I build / rebuild project in Android Studio and can I automate it? -
what difference between following actions in android studio , when should use them?
- synchronize
- build project
- rebuild project
when use each 1 (after pull, after change in xml file, after change in java file)
which mandatory before run , can make run automatically whatever needed me?
there no such thing 'build project' in android studio, there 'make project'. i'll cite the documentation here (android studio based on the intellij idea, don't surprised words 'intellij idea'):
intellij idea suggests several ways of compiling , building applications. corresponding commands available in build menu.
- make project. source files in entire project have been modified since last compilation compiled. dependent source files, if appropriate, compiled. additionally, tasks tied compilation or make process on modified sources performed. example, ejb validation performed if corresponding option enabled on validation page.
- rebuild project. source files in project recompiled. may necessary when classpath entries have changed, example, sdks or libraries being used added, removed or altered.
clean
gradle-related task, clears intermediate files in build
directories. essentially, rebuild project
clean
, followed full build of entire project - compiles .java
files, converts them dex
format, , on.
synchronize
gradle-related task, it's used refresh dependencies after you've changed content of build files.
in short, if you've changed content of build files and/or changed java files, and/or changed resources , want run updated version of application on android device/emulator, hit shift+f10 - it'll update ('synchronize') dependencies, make project , run on device.
Comments
Post a Comment