2017-06-21 It is cooler to use this. gojuno / mainframer: Tool for remote builds . Sync project to remote machine, execute command, sync back . 2016-11-21 23:44 Supports testing 2016-11-14 13:12 Addition of execution method in the cloud
Android has a heavy build. Since the CPU is 100%, the development machine cannot be used during that time. Build on another machine.
Slow, slow, Android Studio build is slow. If you start building for the time being, it will be like this. This continues for this long During this time, you cannot enter the code in Android Studio. You can't browse. I have no choice but to read a book. Thanks to that, Tsundoku has decreased. But the delivery date is coming.
It can't be helped that the build is heavy. There is no choice but to leave it to Google. At least while building
I want to secure that time alone.
Instead of accelerating the build
, I focused on preventing the CPU resources of the development machine from being consumed during the build
.
Various things such as etc. overlapped and the build became heavier day by day. I think.
Building with Android Studio in the cloud to speed up development --Unyablog. This popular article will solve it! I tried it with, but it stopped working in Android Studio 2.2 ... Can I use 2.2 with a little tinkering? I thought, but I didn't understand at all ...
But this mechanism, you don't have to force it in Android Studio, you can use the shell. I thought it would be nice to use python fabric, so I made it. Also, since it costs money, I decided to build with mac mini because I had a surplus instead of the cloud.
I wrote a script! https://gist.github.com/shikajiro/90cdbdac652cf37a563840d812d73c5b
@sys1yagi Seems to have built it on Google's cloud GCE. Onome Build an Android application with an instance of Google Compute Engine
$ fab build
works like a normal build. After compiling and installing, Activity starts.
You can also test with 5-2. $ fab test
. The result is displayed in the browser. You can also $ fab android_test
, $ fab test_all
.I measured the time it takes more than a normal build.
place | Line | Indoor environment |
---|---|---|
Home development machine | optical line | Router-> wifi ->Machine |
Machine by office | optical line | Router-> wifi ->Machine |
Next, I tried tethering with LTE.
place | Line | Indoor environment |
---|---|---|
Cafe development machine | LTE | Android ->Tethering->Machine |
Machine by office | optical line | Router-> wifi ->Machine |
After all apk download is slow. If you want speed, you should refrain from it. But it's great not to use the battery on the go! !!
Recommended Posts