I was facing this issue where Gradle build time was way too much, and on googling some of the simple ways of reducing this, i was super happy 🙂 .
Hi..! This blog is going to be pretty small and may be a little interesting, i hope, if not much.
There are many time we combine multiple modules into the main app inorder to get going a functionality, or rather we integrate several modules incase they do not have a gradle path available.
#1. When defining an emulator with suppose size 1440×2560 or any other size, but with a ram size of 1gb or may be more, there are chances you might get an error :
emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB. Cannot set up guest memory 'android_arm': Invalid argument Error accepting connection, aborting
Well, the solution is to edit the emulator configuration and reduce the ram size that you have assigned :).
#2. Due to screen resolutions, the emulator does not seem to start at a correct location, and you cannot resize the emulator too using the move or resize window tool. But, do not be dismayed. You can still use telnet.
telnet localhost 5554 (if the emulator reads emulator-5554 - you get this when you type adb devices) window scale 0.25 (you can type in any value and experiment till 1) quit