32
Awlex
7y

Am I the only one who doesn't work an a potato?

Comments
  • 2
    It builds under 20 sec on my skylake pentium so i really dont get the whining
  • 1
    Mine takes 15 mins.
  • 1
    @SlyCoopers my specs have feature called " go fucking outside and see how beautiful the world is".
  • 1
  • 2
    @byIcee it burns when you have to finish project before deadline. :(
  • 0
    Mine is temperamental, it's either 10 seconds or 2 minutes šŸ˜•šŸ˜•
  • 1
    Even my phone is stronger / faster than my computer... And gradle build is not running. It's walking.
  • 2
    I get about two minutes most times :/
  • 0
    Nope. Took it down to ~4-5 sec if it has a reasonable amount of libraries.
    That's Android.
    I have a jetty server that compiles in 2.4 sec šŸ˜Ž

    LONG LIVE ALIENWARE!!!
    šŸ‘½šŸ‘½šŸ‘½šŸ‘½šŸ‘½šŸ‘½
  • 0
    In my experience many devs don't know you can make Gradle use more cores and more memory to build (yes I said MORE memory šŸ˜±).

    So libraries are not a problem anymore since they compile in parallel.
  • 0
    @tankmohit11 ask for a better PC?
    If you don't whine about it they won't provide one ;)
  • 3
    Gradle builds take less than 10 seconds for the app I'm working on. I'm using an ancient iMac mid 2011, has a i5 2.7ghz and 12 GB ram.
  • 3
    @antonis179 I'm curious as to how you do this, oh please share your knowledge with us :D
  • 0
    @f03n1x
    If you weren't being sarcastic:
    You can put this in global Gradle properties to affect all projects:

    org.gradle.parallel=true org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx6192
    org.gradle.configureondemand=true
    //There is also a property to affect how many threads you want which is nice to configure what is best for your CPU but I don't recall it right now

    Also keeping things updated makes a difference too.
  • 3
    @antonis179 thanks!, Nope not being sarcastic, I've learnt Android at work, and since I'm the only developer it was through process of elimination and googling, I've yet to touch on the actual features that Android studio actually has.

    I've setup Android studio on my PC with this, since I noticed it was a lot slower than on the work iMac.
  • 0
    When I updated my Android Studio to 2.3.1 the gradle builds have been under 10 secs
  • 2
    are you a wizard? how does it take only 15 sec?? mine takes 15+ mins šŸ˜‚šŸ˜‚
  • 0
    @Pramesh i am glad i am not the only one.
  • 0
    @f03n1x just change that 6192m to whatever ram you're prepared to sacrifice ;)

    The global Gradle properties file is under your user under .gradle.

    After a restart of studio it should show up along with the local gradle properties of the project but in different color (under Android view not project).

    Also another killer is using the entire play services lib. That'll kill your build time cause it's huge so just use its submodules
  • 4
    @antonis179 well I'll definitely have a play around with it, thanks again for the advice, I was speculating whether to make this mobile game idea in either Android'sā€‹ java version or using c++, and I think I'll experiment with both to find their advantages/disadvantages

    I originally made it in c++ with the SDL lib which was going great, just problem was the two time constraint (because I used it as an assignment idea lol), so since I have time I'll redo it again.

    Who knows maybe java will be a better fit. Then again SDL made it cross platform lol
Add Comment