Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
2.65/5 (3 votes)
I have downloaded Android kitkat source code(android-4.4.1_r1) from Git repository.
Then I set required initial setup environment.
And then try to build android source code.

I did this entire procedure as per this link https://source.android.com/source/building.html[^]

I am using 64-bit Ubuntu 14.04LTS version.

After "make -j4" command , I got following error :

make: *** No targets specified and no makefile found. Stop.
#### make failed to build some targets ####

Does anybody know why this error occur?
OR
How to build android kitkat source code successfully?
Posted
Updated 15-Jan-15 23:16pm
v4
Comments
Richard MacCutchan 15-Jan-15 6:56am    
The error message is self-explanatory, there is no Makefile in your path. Check the source tree to see if the files are stored in some other directory.
RupeshMote 16-Jan-15 0:20am    
Thanks for your reply.

But, I executed make command, in the directory of Makefile then also following error occurs :

find: `/res-xhdpi': No such file or directory
No private recovery resources for TARGET_DEVICE
No recovery.fstab for TARGET_DEVICE

Makefile:1653: /sdk_font.mk: No such file or directory
make: *** No rule to make target `/sdk_font.mk'. Stop.
Richard MacCutchan 16-Jan-15 3:41am    
You need to go back to the site where you downloaded the code and ask there.
RupeshMote 16-Jan-15 4:43am    
Thanks. I will ask on android website.
Vinod Kulkarni 16-Jan-15 2:17am    
Facing same error.

1 solution

Finally, I have build android source code successfully.
Here is how I did it :

In first attempt, I had downloaded source code of Kitkat branch. But it was not downloaded properly.(source files were missing).

Then, I have downloaded Android OS source code of master branch, which is downloaded properly.

Then I build it.

It took 5 hours to build it.

At the end, my terminal shows following lines :

#### make completed successfully (04:40:46 (hh:mm:ss)) ####

I refer this link : https://source.android.com/source/building.html[^] for source code download and build.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900