Eselfar
Eselfar

Reputation: 3869

Build Android app using distant computer

I'm currently working on a big app and it takes ages to the machine to build it. I'd like to know if it's possible to deport the building process on a distant and more powerful computer without leaving Android Studio? If not is there any way to faster the building process?

Upvotes: 1

Views: 47

Answers (2)

Gabe Sechan
Gabe Sechan

Reputation: 93726

Sure. You don't think release builds are generally made on the developer's desktop PCs, do you? Generally they're done via command line builds on a build server so everything can be scripted. No reason you can't do the same for your local build. However you'll need to copy over the files in your local somehow, build, then bring the resulting apk back. You'll have a couple of hours of scipting work to set it all up.

Upvotes: 0

Tobias
Tobias

Reputation: 7415

  • you could use a special flavor or build type which uses a higher minSdk productFlavors { dev { dimension "stage" minSdkVersion 21 versionNameSuffix "-dev" applicationIdSuffix '.dev' ... }
  • increase heap size
    org.gradle.jvmargs = -Xmx2048m

and much more: https://developer.android.com/studio/build/optimize-your-build.html

Upvotes: 1

Related Questions