Search

Dhara Shah

"Dream on"

Tag

Android studio

Reduce Gradle building time :)

Hi there!..

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 🙂 .

Continue reading “Reduce Gradle building time :)”

Advertisements

Multiple build.gradle files – clubbing them into one

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.

Continue reading “Multiple build.gradle files – clubbing them into one”

Changing default size of the emulator, and emulator issues in android studio

#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.

Steps:

  • Check if telnet is allowed in your system : Go to Control panel -> Programs and features -> Turn on/off windows features-> Tick mark Telnet client (Telnet server can also be tick marked)
  • Go to cmd and type:
    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

Happy coding!

Powered by WordPress.com.

Up ↑

%d bloggers like this: