I have downloaded Android 4.0.1_r1 source. Upon decompressing the tar, the entire source code is around 9.21 GB in the disk.
The guideline in Google as quoted in http://source.android.com/source/initializing.html
Note: The source download is approximately 6GB in size. You will need 25GB free to complete a single build, and up to 90GB (or more) for a full set of builds.
Background Info
(my system) -
Intel i5 2 processors (4 core) , 8 GB RAM
My host system is Windows Server 2008 and I am trying to run Ubuntu 11.01 (64 bit) desktop with a memory 4GB allocated as Virtual Machine using Oracle Virtual Box. The disk space in the VM is currently around 50 GB.
These are my few small questions :-
What is the difference between single build and "full set" of builds ?
Based on the configuration shared , is it advised for me build Android 4 on a Ubuntu VM or should I consider installing Ubuntu on a separate primary partition with dual boot and start the build on a Ubuntu Host ?
Are there any known recommended minimum system configuration to support building Android 4 or above as I have seen somewhere in the external forums that one requires 16 gigs of RAM to build android. I dont expect an exact to the point answer on this but some minimum quick pointers would do fine for me based on someone's past build experience with Android 4 ICS.
Although it may appear as a duplicate question here , but the old question refers to previous versions of Android with much less source code.
By single build / full set I guess they mean all the variants you can build (engineering build, userdebug, user, etc).
RAM is a pretty serious issue when it comes to build time. Having said that, I've built ICS on a quad core (Intel Core 2 IIRC) with 4 GB RAM. It would take a couple of hours to build a single variant from scratch (with make -j4), and the computer would be pretty much unusable for other tasks in the meantime.
I think an eight core CPU and 16 GB RAM is about as low as I'd want to go on the specifications if I was going to build Android on a regular basis (I'm currently using an eight core Xeon with 20 GB RAM, which has pretty decent build times).
The disk space usage for the full repo with a single variant built is slightly more than 30 GB for me, but that will depend on exactly what you include in your build, so the 25 GB figure you mentioned doesn't sound unreasonable.
you will be very low on disk rapidely.
you're configuration is OK but it will be slow and you'll need lots of time to compile
Running it on a real ubuntu will give you much better perf
Ram issue is not a real one, if you're system is able to use lots of RAM it will compile faster because it will need less disk access, but doing it with 4 gB can do the thing. just more slowly
For the full set of build part I do not know
Good luck
Related
This question has been asked before but I cannot seem to find either YES or NO.
I am fairly a noob when it comes to app development and I can only work with Pascal, and Delphi 2010 is the only IDE my laptop can run without trouble. I have a Compaq CQ58 notebook pc, wth a Intel(R) celeron(R) 1000M # 1.8 GHz processor 64 bit os and 2 GB RAM.
It is a very low grade laptop, but is it still possible to develop android apps with it? I have Kotlin's IntelliJ IDEA Educational Edition 2021.2.1 insalled but it takes up too much RAM with the Gradle plugin running.
To sum it all up, can an Android app be developed Without an IDE and if so, HOW?
Without an IDE? Yes. You can use command line gradle commands to compile, and any text editor to write the files- vi or notepad would work. With that low a grade laptop? Gradle is memory hungry. I wouldn't want to compile a non-trivial app on less than 16 GB, and I prefer 32 or 64. The speed of your processor is actually less important than being able to hold enough data in memory for gradle to run.
I don't know where you are in the world, but you can get a cheap PC for only a few hundred dollars. If you can possibly afford it, its well worth the investment. Even if you could build on your laptop, builds would take hours as things paged. 2GB has been the minimum settings for most OS for a decade, and it didn't run well in that. You can get a 16 GB machine, which I would consider the minimum, for $500 or less. You don't need a good video card or the fastest processor, but you do need sufficient ram.
Core i3 370m 1st Gen 2cores 4threads #2.5ghz.
6GB DDR3 RAM
OS: Manjaro Linux
Can this laptop run Android studio without the emulator(I will use an Android device for that).
Is upgrading the cpu to a core i7 640m 1st gen 2cores and 4threads at 2.6 ghz recommended?
Your CPU will run it fine, not impressive though, but your ram might be a limiting factor and if you are going to be making a proper project with lots of xml and java class files that 6gb ram might be a limiting factor bottlenecking the whole system. Even though Linux is a light version OS Android Studio can still horde on ram.
Edit Based on Comment (Cant share image there)
yes 8 gb will get you buy but the problem is you will eventually have problems even with 8gigs later own (as you scale projects and make more complex apps) and you wont be able to upgrade your ram as maximum support of both the 370m and 640m is limited to 8gb
If I were you ill just stick with 6gigs and get myself familiar with android studio and save some money and upgrade to at least a 2th gen or higher to get that 16 gigs max capacity
Edit 3 (posting intel ark link)
here is the Intel ark page link search for any cpu that you find in your budget range which has at least 16 gb max capacity limit (for ram)
For running android studio You have the correct processor but it is recommended to upgrade the RAM to 8 GB as it is recommended by Google, But if you cannot than you might face OS hanging issue
Am trying to build AOSP code. Following the instruction am able to start the build but after few minutes my system hangs .System has 3GB RAM and 320GB hdd.
I have a 3GB RAM ubuntu system and AOSP source compiles without problems. Try using
make -j4
This will spawn 4 threads and will compile faster on a multi-core CPU.
it will not compile ..requires about 6 gig ram or more..trust me I use to build on 3gig machines sometime ago.. stop doing it about 1.5 years ago due changing requirements of needed ram.
The good news is that most economy machines you see in walmart now for about $300 to $500 can in fact build AOSP code even though they may have only 8 12 gig ram.
It looks like you may need additional RAM to compile AOSP code. Although it may build with 6 GB, I recommend at least 8 GB; without the extra gigabytes, bad things could happen.
I would like to know if my PC configuration is enough to download and build Android AOSP source code? The AOSP docs say:
If you are running Linux in a virtual machine, you need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree.
My PC configuaration :
Intel Core 2 Duo processor
2 GB RAM
250 GB HDD
Now I plan to install both Windows 7 and Ubuntu 12.10 as dual boot. Is my configuration is enough or will I need anything else?
The question was posted in 2013 and it appears that Android AOSP has gotten much larger over the years. You definitely need more up to date and faster hardware than a Core 2 Duo Processor with 2GB of RAM and a 250 GB hard disk these days.
The build requirements currently (November 2020) say you need 250GB of free space just to download the source. Then you need another 150GB of free space to do a build. https://source.android.com/setup/build/requirements
You also need a 64 bit Linux environment for the build itself.
From my limited experience there are several places or choke points that should be considered for any modern build environment and Android AOSP is big.
processor speed and number of cores and threads
amount of RAM and RAM type/speed
amount of disk space and type of disk hardware
I am working with Android AOSP with a PC with the following setup:
Ubuntu 20.04.1 LTS
Intel i3-9100F (4 core CPU, 3.60GHz with 6MB cache)
32 GB of RAM, 2666MHz DDR4 on a micro ATX motherboard
1TB NVMe drive
NVIDIA RTX2070 GPU (graphics card is for TensorFlow machine learning)
I've been considering upgrading the CPU to an Intel i7-9700F (8 core CPU) as it appears the Android build will spread the amount of work between the cores and a build would take fewer hours. On the other hand, this is not my primary work PC so it probably isn't necessary.
When I start a build using m -j4 after doing a make clobber it takes right at 4 hours to do the build with the current Android AOSP source and this hardware. The PC is doing nothing other than the build and the exhaust 120mm case fan speeds up until the build completes.
What is written in the AOSP documentation is true. You need a 16GB ram in order to build AOSP. If you have less RAM than that then you might face java heap memory errors.
You can read this detailed article about AOSP. This will surely help you.
https://liongueststudios.com/download-and-build-aosp-android11-custom-rom/
With the latest SDK release, and the ability to download separate platforms releases into the SDK, the hardware resources required to develop for Android have increased significantly. Assuming that the developer targets all currently available seven platforms - that could take your dev machine to its knees. Taken alone the 'Android SDK Content Loader' takes nearly two minutes on a dual-core machine with 2GB memory.
As the title suggest the reason for creating this wiki is for everyone to list their development hardware configurations, and thus determine what is a well-suited machine for Android development.
The secondary reason for the wiki is that I'm trying to get my employer to provide me with a decent machine for development as I'm currently forced to work on a nearly 4 year old randomly-built machine, and expected to deliver great results. However, the reality is that my system keeps running out of memory, and I can hardly get a chance to write a few lines of code in between the numerous crashes.
Hope this grows well enough so it helps out beginners to decide whether or not an upgrade on their existing configurations will improve their productivity! Of course, I hope it will serve me as a good evidence to show to my employer that I do need an upgrade too!
Thanks!
Black MacBook (Jan. 2008) 2.2 GHz Core 2 Duo, 4 GB RAM, 160 GB HD, with the built-in Intel graphics chipset. I've got a 23" Samsung LCD that I hook it up to when I'm working at my desk.
Only thing upgraded is the RAM. Eclipse had a tendency to freeze up all the time until I upgraded the RAM.
So, my setup goes like this:
MacBook Mac OS 10.6, 2.4 Ghz, 4 GB RAM, NVidia 9400
I was working working on this machine before
iMac, 2.2 GHz, 4GB RAM, I forget which ATI card
I have a MacBookPro 4GB RAM, 2.53 Ghz, 320GB 7,200 RPM hard drive.
Works like a charm, though Eclipse does take a lot of RAM (about 400-600MB), so I try not to use a lot of other CPU/RAM intensive apps at the time (music/media, VM, etc).
I am using the following.
Windows 7 Ultimate 64 bit,
AMD Phenom 9950 Agena 2.6GHz Quad Core,
AMD Radeon HD 4850 512 MB
4 GB Ram,
10,000 RPM HDD
Dual 21' LCD monitors
The system is about 1.5 years old, but is still working great.
I'm using Ubuntu Linux OS, Intel Core 2 Duo 2.40GHz CPU, 2GB memory, 15KRPM hard drive, 37" 1080P LCD TV monitor.
No complaints re Android development with Eclipse. System does become barely functional due to excessive swapping if I try to use a VirtualBox VM with Windows XP loaded (to test web pages in MSIE, etc.) and lots of memory allocated while things like Eclipse are also gobbling memory, though. Eclipse's default memory use settings have been cranked up as well, however.
I'm using Windows XP sp3,Intel pentium D 3.0ghz processor,2GB RAM,80GB HDD,No external graphics card installed. I'm able to develop for android versions up to 2.2 without having much delay.but when it comes to androi 2.3 and above my emulator takes a lot of time to load and run apps.