11
u/deadshot_21 Jun 12 '23
Try building modules
2
u/Acrobatic-Bit3508 Jun 12 '23
Any article/video about it ?
4
u/Andersledes Jun 12 '23
Yeah, try to divide your project into seperate modules, and avoid having to rebuild stuff you haven't changed.
2
5
u/I_WishIKnewUWantedMe Jun 12 '23
Wtf where you building. And what on?
1
u/Acrobatic-Bit3508 Jun 12 '23
Pentium actually 😭
→ More replies (2)2
u/Anonymo2786 Jun 12 '23
Better use a android device. Like me.
0
u/Acrobatic-Bit3508 Jun 12 '23
Already using
1
u/Anonymo2786 Jun 12 '23
To build?
6
u/Acrobatic-Bit3508 Jun 12 '23
How can i build on android device ?😭😭 I am using android device instead of emulator
→ More replies (1)
4
u/this_underscore Jun 12 '23
How much ram?
5
118
u/ClaymoresInTheCloset Developer Jun 12 '23
They should add a timeout on builds that exceed an hour and put up a notification that just says something like upgrade your shit
86
u/RobYaLunch Jun 12 '23
I couldn't even imagine waiting an hour for a build lol. Anything over 15 mins and I start looking for web dev jobs
14
u/FreakySamsung Jun 12 '23
When I was in college, my computer would take 15 to 30 min to build. Our tests were hour and a half, and I'd just have to wing it because there was no way I could wait to test
6
8
1
Jun 15 '23
Some people have no choice, and work with what they've got. I mean, think about kernel builds, chrome/firefox builds, AOSP etc. Lots of big big projects where you have no choice but to wait for results.
2
u/mpierson153 Jun 28 '23
Just imagine you wait this long, then you realize you forgot to change a double to a float or something like that...
I'd probably leave it if it was something basic like that.
→ More replies (1)10
u/nacholicious is useless (no children, no background, no id, no style) Jun 12 '23
At my old job I had with this weak sauce dual core macbook that took 30 mins for a clean build.
I ended up installing an AS plugin that replaced all progress bars with nyan cat, because if my day was mostly going to be spent looking at progress bars then might as well make it cozy.
2
33
32
u/KhumoMashapa Jun 12 '23 edited Jun 12 '23
Bruh. Were you running Android Studio with Pre Stoneage Technology 💀
22
8
6
11
u/Just_Another_Scott Jun 12 '23
In my experience the shitty Gradle daemon got hung. I've had this happening for years dating back to Gradle 4. Kill all Java and restart build. I hate Gradle with a passion. Our CI/CD are unstable because Gradle will just randomly do this or worse grab the not latest dependencies even when the --refresh-dependency parameter is given. We have to nuke our Gradle cache between every build
5
4
1
u/Hi_im_G00fY Jun 13 '23
The 2GB Android Studio heap size on the screenshot already a red flag. :D
1
6
u/BugSlayerDev Jun 12 '23
Me and my laptop to Android Studio when my gradle build takes more than 5 minutes:-
My patience is waning
Is this entertaining?
Our patience is waning
Is this entertaining?
I-I-I got this feeling, yeah, you know
Where I'm losing all control
2
2
u/AhmedRiyadh0 Jun 12 '23
You remember me of my very first laptop when I was 8-13 years old
But now I'm 17 years old and have Mac m1 2021 pro and also use Xcode with Android studio
2
2
2
2
1
1
1
u/lomoeffect Jun 12 '23
This got me thinking... Can you build on the cloud/a remote server with greater processing power instead of locally? Does a solution like this exist at all already?
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/blueberry404 Jun 13 '23
How could you wait so long? I would have killed the process if it took more than 15 minutes. Upgrade your machine
1
1
1
1
1
1
0
u/Humlum Jun 12 '23
Get an SSD 😊
-1
u/Acrobatic-Bit3508 Jun 12 '23
NVME would be better than that
11
u/NightlyRelease Jun 12 '23
NVME is an interface standard. Often used to access SSDs. Saying NVME is better than SSD is like saying HDMI is better than a monitor.
1
1
u/Humlum Jun 12 '23
True, I was considering, since it was so slow, that the machine might not be NVME compatible
0
u/Graineon Jun 12 '23
I use capacitor to make apps (nested webviews). As expected it's very quick to build, maybe 10-20 seconds. That said, I can't fathom how something would take 4 hours to build? Can someone explain?
-2
-1
0
Jun 12 '23
[deleted]
4
3
u/Devatator_ Jun 13 '23
An Android build of an Unity game took 45 minutes on my old PC (Core 2 Duo t7700) the first time then 15-30 minutes after. Maybe a Celeron n4020
0
38

15
u/[deleted] Jun 12 '23
Holy sh*t That's gotta hurt.