After compiling the android source, It's time to compile the sdk.
Remember before start compiling the sdk, you need to use the sun jdk 1.5.
use this command: update-alternatives --config java
to switch to jdk5.
However, when I'm compiling the sdk when follow the above steps, there are still error.
My solution is:
1. use lunch sdk-eng before make sdk(if the error still occur)
2. remove all the java sdk in my ubuntu such as openjdk and sun-java1.6.jdk(except jdk5)
And after these two steps, I successfully finished compiling the sdk
you can find the jdk in ~/out/host/${your_machine}/sdk
here is the layout:
drwxr-x--- 3 user user 4096 2011-04-18 10:11 .
drwxr-xr-x 9 user user 4096 2011-04-18 10:10 ..
drwxrwx--- 7 user user 4096 2011-04-18 10:10 android-sdk_eng.user_linux-x86
-rw-r--r-- 1 user user 172889941 2011-04-18 10:11 android-sdk_eng.user_linux-x86.zip
-rw-r--r-- 1 user user 648232 2011-04-18 10:11 sdk_deps.mk
steps review:
sudo update-alternatives --config java(change to jdk5)
lunch sdk-eng
make sdk
This blog is all about computer science, especially the information security. Leave a comment to let me know how to let this blogger get better
Article
Subscribe to:
Post Comments (Atom)
Labels
- android (5)
- assembly language (9)
- internet (1)
- linux (5)
- MicroMike (13)
- OS (10)
- recent news (1)
- shell code (6)
- Slackware (2)
- thoughts (1)
- ubuntu (6)
- wargame (1)
No comments:
Post a Comment