Android Kernel Compilation Requirement - android

I'm trying to setup the environment for Android compilation and the requirements suggest that I need to have 16GB of RAM/SWAP for compiling Android on a virtual machine.
I'm using an Lenovo R430 and it has a 4GB RAM. Can I go ahead with the compilation.

You answered your own question, you have 4gb of ram and you said it needs a minimum of 16gb, now you can add like 20gb of swap, however it will be extremely slow.

Related

Will Android studio run on core i3 370m first gen processor?

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

android studio use to much ram on ubuntu

can anyone tell me why android studio on Ubuntu use to much ram memory and why it is so painful to code.
My specs are:
cpu: i3-2310m
ram: 4gb ddr3
system: ubuntu 16.04.1
I had android studio on win 10 and with emulator was used only 3,4gb of ram.
Codding was not so great on win 10, but definitely less painful (less lagging)than on ubuntu.
I use the same android studio (2.1) and the same project but,
on Ubuntu use whole ram and use 1,1 gb of swap and emulator now is lagging. how is that possible, should not android studio be less demanding on ubuntu than on windows os?
and why it is so painful to code. My specs are: cpu: i3-2310m ram: 4gb ddr3 system:
"4gb" - that's why. i3 is also not helping really as the whole IDE, gradle and stuff needs some horse power. What's your storage? 5400 hdd or maybe something better?
As immediate solution try to decrease memory in AVD (emulator) settings, try 512Mb.
Also you can try power saving mode (it can consume less memory too) pressing on the bottom-right button, see the screenshot:
You can even try to disable Inspections in this menu, if you're comfortable without them.
But the real solution is only to buy more RAM, unfortunately...

How many minium RAM memory requirement for build android ROM on device run ubuntu 64 OS

I want build a ROM version by myself. But I'm not sure if laptop with 4GB RAM memory is enough for development. Anybody help me?
P/s: Laptop is running Ubuntu 14.04 64bit
I would suggest you to read the minimum requirements mentioned by Google.
Link: AOSP Minimum Requirements
As an additional note, if you are keeping swap space, make sure it is half the size of your RAM.
16GB is recommended if you are building in a virtual machine on top of windows. I increased the swap partition on 6GB physical building initially.
I've now built omnirom marshmallow for nexus 10 with Ubuntu 14 natively installed, 16GB of ram. During the build it didn't go much above 6GB RAM use.
You'll find CPU gets max'd out first, at least on my dual core i5 (2.5-3Ghz)
I have read about building Android on ubuntu server, that may have slightly lower RAM requirements.

Hardware requirements for android SDK assuming no emulator

I have an old laptop running Windows Vista with a 2.6 Ghz Intel Celeron and 2 gigs of RAM. I was considering installing Lubuntu or another lightweight Linux distro on it to use for travel. Would this be able to run the Android SDK/Eclipse reasonably well? All other threads I could find were about running the emulator-I will be running the apps on my Galaxy S4 or Nexus 7, so I just need Eclipse to run.
Thanks in advance.
It should be able to run it, but probably not very fast. The Celeron line of processors had a small internal cache and were only single core. Eclipse is a big piece of software which uses a lot of RAM and can be disk intensive as well. I've got an older Core2 Duo 2GHz with 4GB of RAM and Eclipse/ADT can be pretty sluggish at times if I have to use that machine. Good luck!

PC configuration to download and build android AOSP source code

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/

Categories

Resources