You can use termux. r/termux. For ndk you can use https://github.com/Lzhiyong/termux-ndk for cmake below 3.14 (I think) you have to use a prooted distro. For build-tools you cant use sdkmanager unless you use android studio in GUI mode . you have to download manually . there is a website for that . and that's how you build android apps in Android.
Also : from a long time ago but now that I know how to I can setup very easily.
Edit: I did this just for experimental purposes. Don't take this seriously those who don't understand. You can use the app termux for on the go development.
Man, you can find a computer for like 50$ with one of the first gens I5 that would be at least 10 times faster than this...
Even 7 year old can earn that money... If programming is your passion I would advise you to release one simple app or this project that you are working on and then make a patronite account or something like that to gather some money to buy a new computer.
If you have talent for programming then don't waste it because of a terrible computer.
I mean, he probably lives in a third world country where getting a stronger PC is extremely difficult. Source: I live in a third world country where getting a stronger PC is extremely difficult
IMO use the web browser on your phone/tablet to research stuff, and only run the IDE on your dev machine. And make sure any background apps and crap is closed.
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
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.
Well yeah, that is frustrating. I remember being in university, had to do parallel computing stuff on the university compute centre setup. Had to submit batch jobs and maybe wait hours/days to get mine done (because it's used by many others including for actual research).
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.
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
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?
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?
15
u/[deleted] Jun 12 '23
Holy sh*t That's gotta hurt.
11
u/deadshot_21 Jun 12 '23
Try building modules
5
u/I_WishIKnewUWantedMe Jun 12 '23
Wtf where you building. And what on?
4
u/this_underscore Jun 12 '23
How much ram?
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
33
u/funnyDonaldTrump Jun 12 '23
Noob, mine fails much faster
32
u/KhumoMashapa Jun 12 '23 edited Jun 12 '23
Bruh. Were you running Android Studio with Pre Stoneage Technology 💀
22
u/archibalis Jun 12 '23
Just clean project and try again.
19
u/[deleted] Jun 12 '23
And the error is not finding DaggerShitComponent 💀
8
u/appdevbri Jun 12 '23
I start freaking out after two minutes let alone several hours lol
6
u/kilenzolino Jun 12 '23
this gives me physical pain
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
u/makridistaker Jun 12 '23
I wouldn't wish that for my worst enemy!
4
u/[deleted] Jun 12 '23
I use pc from stone age and i can feel that
1
u/Hi_im_G00fY Jun 13 '23
The 2GB Android Studio heap size on the screenshot already a red flag. :D
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
u/jobR45 Jun 12 '23
Been there, done that.
I live in paradise now.
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
u/FitFirefighter1202 Jun 12 '23
Brother, who did this to you?
2
u/le-moine-d-escondida Jun 12 '23
Ouch I feel your pain.
2
u/alexmelyon Jun 12 '23
I like modules, don't you? >:-[]
2
u/dejii Jun 12 '23
How complex of an app are you building that it takes this long?
2
u/Background-Matter160 Jul 05 '23
1
u/Capable_Two_5643 Aug 17 '24
Does it still happen with other developers who have new machines
1
u/Good_Smile Jun 12 '23
My life in a nutshell
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
u/SarathExp Jun 13 '23
i don't hate my work machine anymore
1
u/PrestigiousStage56 Jun 13 '23
Well you better get used 😑
1
u/ericntd Jun 13 '23
Don't it happen to every other IDEs once in a while too?
1
u/Fancy-Jellyfish-66 Jun 13 '23
Regular day
1
u/WestonP Jun 13 '23
Some of us are like "how do you get your builds to run so fast!?"
/s
1
u/_lazy_lad_ Jun 13 '23
Are you running it on intel 4004
1
u/jgimenez Jun 13 '23
I love that precision. It's the 505ms that matter
1
u/abos3d Jun 13 '23
Replace your OS with Linux
1
u/jazibofficial Jun 13 '23
Bro was running android studio on vacuum tube
1
u/Danielngardner Jun 13 '23
So how long does it take to build like a custom ROM?
1
u/RapunzelLooksNice Jun 13 '23
Damn, 505ms slower than previous fail 🤷♂️
1
u/Gaurav-Garg15 Jun 13 '23
I know the pain from building my first AOSP
1
u/anymbryne Jun 13 '23
I admire the level of patience to wait for that long
1
u/WhatIsThisSevenNow Jun 13 '23
A four-hour build?! What are you writing, SkyNet???
1
u/geeklimitexceeded Jun 13 '23
Sed
1
u/MouseyMan7 Jun 13 '23
Relatable.
1
u/3nd3rCr0w1ng Jun 13 '23
Ouch.
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
u/nagarkotideepak9 Jun 14 '23
My mind playing the Sound... Shit Shit Shitt
1
u/vegeta0911 Jun 14 '23
Physical damage: 0% Emotional damage: 100%
1
u/ghost_rider_007 Jun 14 '23
Bro, What are you building? Is Skynet on android or something ?
1
u/Alebiary Jun 22 '23
I hate gradle
1
u/LilRee12 Jun 23 '23
Praying for you lol
1
u/[deleted] Jul 11 '23
Oh lord .. I feel bad for you
0
u/Humlum Jun 12 '23
Get an SSD 😊
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
u/S0phon Jun 12 '23
No, this is pain.
-1
u/ticherhaz Jun 12 '23
I think you need to update your Android
0
u/[deleted] Jun 12 '23
[deleted] — view deleted comment