Reputation: 3869
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
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
Reputation: 7415
minSdk
productFlavors {
dev {
dimension "stage"
minSdkVersion 21
versionNameSuffix "-dev"
applicationIdSuffix '.dev'
...
}
org.gradle.jvmargs = -Xmx2048m
and much more: https://developer.android.com/studio/build/optimize-your-build.html
Upvotes: 1